Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

87 lines
3.4KB

  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. <!-- One JSON access-log line per API response on stdout (docker logs axonasp); "false" turns it off. -->
  37. <add key="ApiAccessLog" value="true" />
  38. <add key="EmbeddingProvider" value="ollama" />
  39. <add key="EmbeddingUrl" value="http://ollama:11434" />
  40. <add key="EmbeddingModel" value="nomic-embed-text" />
  41. <add key="EmbeddingDimensions" value="768" />
  42. <add key="EmbeddingDocumentPrefix" value="search_document: " />
  43. <add key="EmbeddingQueryPrefix" value="search_query: " />
  44. <add key="EmbeddingMinScore" value="0.6" />
  45. <add key="VectorStoreUrl" value="http://qdrant:6333" />
  46. </appSettings>
  47. <system.webServer>
  48. <!-- Default document for the site root -->
  49. <defaultDocument>
  50. <files>
  51. <clear />
  52. <add value="Default.asp" />
  53. </files>
  54. </defaultDocument>
  55. <!-- URL Rewrite: send everything that is not an existing file/folder through Default.asp (RE2: no lookahead; the original path is passed as __route) -->
  56. <rewrite>
  57. <rules>
  58. <rule name="Rewrite to Default.asp" stopProcessing="true">
  59. <match url="^(.+)$" />
  60. <conditions>
  61. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  62. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  63. </conditions>
  64. <action type="Rewrite" url="/Default.asp?__route=/{R:1}" appendQueryString="true" />
  65. </rule>
  66. </rules>
  67. </rewrite>
  68. </system.webServer>
  69. </configuration>

Powered by TurnKey Linux.