Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

85 linhas
3.2KB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <appSettings>
  4. <!--
  5. SQLite connection string (AxonASP ADODB layer: "sqlite:" prefix + file path).
  6. docker-compose.yml mounts the framework folder at /opt/axonasp/site, so db/ is /opt/axonasp/site/db.
  7. The file is created on first open if it does not exist.
  8. -->
  9. <add key="ConnectionString" value="sqlite:/opt/axonasp/site/db/app.sqlite" />
  10. <!-- Environment flag (Development / Staging / Production) -->
  11. <add key="Environment" value="Development" />
  12. <!-- Flash message display duration in milliseconds -->
  13. <add key="FlashMessageTimeout" value="3000" />
  14. <!-- 404 error page redirect countdown in seconds -->
  15. <add key="Error404RedirectSeconds" value="5" />
  16. <!-- Cache expiration year for static content -->
  17. <add key="CacheExpirationYear" value="2030" />
  18. <!-- Maximum characters to display in table cells before truncating -->
  19. <add key="TableCellMaxLength" value="90" />
  20. <!-- Character threshold for textarea vs input field in forms -->
  21. <add key="FormTextareaThreshold" value="100" />
  22. <!-- Enable error logging to file (true/false) -->
  23. <add key="EnableErrorLogging" value="false" />
  24. <!-- Error log file path (if EnableErrorLogging is true) -->
  25. <add key="ErrorLogPath" value="C:\YourApp\logs\errors.log" />
  26. <!-- Enable cache-busting for URLs and assets (true/false) -->
  27. <add key="EnableCacheBusting" value="false" />
  28. <!-- Cache-bust parameter name (default: "v") -->
  29. <add key="CacheBustParamName" value="v" />
  30. <!--
  31. Semantic retrieval (core/lib.Embeddings.asp). EmbeddingProvider "none" = lexical only.
  32. The ollama and qdrant services come from docker-compose.yml. Pull the model once:
  33. docker exec ollama ollama pull nomic-embed-text
  34. Changing the model or dimensions starts a new vector collection: run scripts\embed.cmd reindex.
  35. -->
  36. <add key="EmbeddingProvider" value="ollama" />
  37. <add key="EmbeddingUrl" value="http://ollama:11434" />
  38. <add key="EmbeddingModel" value="nomic-embed-text" />
  39. <add key="EmbeddingDimensions" value="768" />
  40. <add key="EmbeddingDocumentPrefix" value="search_document: " />
  41. <add key="EmbeddingQueryPrefix" value="search_query: " />
  42. <add key="EmbeddingMinScore" value="0.6" />
  43. <add key="VectorStoreUrl" value="http://qdrant:6333" />
  44. </appSettings>
  45. <system.webServer>
  46. <!-- Default document for the site root -->
  47. <defaultDocument>
  48. <files>
  49. <clear />
  50. <add value="Default.asp" />
  51. </files>
  52. </defaultDocument>
  53. <!-- URL Rewrite: send everything that is not an existing file/folder through Default.asp (RE2: no lookahead; the original path is passed as __route) -->
  54. <rewrite>
  55. <rules>
  56. <rule name="Rewrite to Default.asp" stopProcessing="true">
  57. <match url="^(.+)$" />
  58. <conditions>
  59. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  60. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  61. </conditions>
  62. <action type="Rewrite" url="/Default.asp?__route=/{R:1}" appendQueryString="true" />
  63. </rule>
  64. </rules>
  65. </rewrite>
  66. </system.webServer>
  67. </configuration>

Powered by TurnKey Linux.