Consolidated ASP Classic MVC framework from best components
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

70 lignes
2.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. </appSettings>
  31. <system.webServer>
  32. <!-- Default document for the site root -->
  33. <defaultDocument>
  34. <files>
  35. <clear />
  36. <add value="Default.asp" />
  37. </files>
  38. </defaultDocument>
  39. <!-- URL Rewrite: send everything that is not an existing file/folder through Default.asp (RE2: no lookahead; the original path is passed as __route) -->
  40. <rewrite>
  41. <rules>
  42. <rule name="Rewrite to Default.asp" stopProcessing="true">
  43. <match url="^(.+)$" />
  44. <conditions>
  45. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  46. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  47. </conditions>
  48. <action type="Rewrite" url="/Default.asp?__route=/{R:1}" appendQueryString="true" />
  49. </rule>
  50. </rules>
  51. </rewrite>
  52. </system.webServer>
  53. </configuration>

Powered by TurnKey Linux.