Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

115 wiersze
4.3KB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <appSettings>
  4. <!-- Access connection string. Points at the persistent data folder, outside the
  5. deploy directory so a redeploy (which wipes and re-extracts the deploy dir) never
  6. touches it. -->
  7. <add key="ConnectionString"
  8. value="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\inetpub\data\webdata.accdb;Persist Security Info=False;" />
  9. <!-- Environment flag (Development / Staging / Production) -->
  10. <add key="Environment" value="Production" />
  11. <!-- Flash message display duration in milliseconds -->
  12. <add key="FlashMessageTimeout" value="8000" />
  13. <!-- 404 error page redirect countdown in seconds -->
  14. <add key="Error404RedirectSeconds" value="5" />
  15. <!-- Cache expiration year for static content -->
  16. <add key="CacheExpirationYear" value="2030" />
  17. <!-- Maximum characters to display in table cells before truncating -->
  18. <add key="TableCellMaxLength" value="90" />
  19. <!-- Character threshold for textarea vs input field in forms -->
  20. <add key="FormTextareaThreshold" value="100" />
  21. <!-- Enable error logging to file (true/false) -->
  22. <add key="EnableErrorLogging" value="true" />
  23. <!-- Error log file path - also outside the deploy directory so logs survive a redeploy. -->
  24. <add key="ErrorLogPath" value="C:\inetpub\data\logs\errors.log" />
  25. <!-- Enable cache-busting for URLs and assets (true/false) -->
  26. <add key="EnableCacheBusting" value="false" />
  27. <!-- Cache-bust parameter name (default: "v") -->
  28. <add key="CacheBustParamName" value="v" />
  29. <!-- SMTP settings used by CDOEmail for outbound order emails. -->
  30. <add key="SmtpServer" value="kentcommunications-com.mail.protection.outlook.com" />
  31. <add key="SmtpPort" value="25" />
  32. <add key="SmtpUsername" value="" />
  33. <add key="SmtpPassword" value="" />
  34. <add key="SmtpUseSSL" value="false" />
  35. <add key="SmtpFromAddress" value="no-reply@kentcommunications.com" />
  36. <!-- Hours before an order continuation link (token) expires -->
  37. <add key="OrderTokenExpirationHours" value="24" />
  38. <!--
  39. Jurisdiction number validation (request-order form). The list is essentially static
  40. reference data, so it's cached in Application scope rather than fetched on every
  41. submission - see JurisdictionCacheMinutes.
  42. -->
  43. <add key="JurisdictionApiUrl" value="http://192.168.1.40:8081/api/jurisdictions" />
  44. <add key="JurisdictionCacheMinutes" value="60" />
  45. <!-- Cloudflare Turnstile (CAPTCHA) keys. -->
  46. <add key="TurnstileSiteKey" value="0x4AAAAAAEUPEPHEnA9hPgbw" />
  47. <add key="TurnstileSecretKey" value="0x4AAAAAAEUPEFnbhCe6ttr_Mq6yCozxRkg" />
  48. </appSettings>
  49. <system.webServer>
  50. <!-- Default document for the site root -->
  51. <defaultDocument>
  52. <files>
  53. <clear />
  54. <add value="Default.asp" />
  55. </files>
  56. </defaultDocument>
  57. <!-- URL Rewrite: send everything through Default.asp except static assets -->
  58. <rewrite>
  59. <rules>
  60. <rule name="Rewrite to Default.asp" stopProcessing="true">
  61. <match url="^(?!Default\.asp$|css/|js/|images/|aspunit/|favicon\.ico$).*$" />
  62. <conditions>
  63. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  64. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  65. </conditions>
  66. <action type="Rewrite" url="/Default.asp" />
  67. </rule>
  68. </rules>
  69. </rewrite>
  70. <!-- Strip the Server response header (reveals IIS version) - IIS 10+ only -->
  71. <security>
  72. <requestFiltering removeServerHeader="true" />
  73. </security>
  74. <!-- Strip framework-identifying headers that IIS/ASP.NET modules may add -->
  75. <httpProtocol>
  76. <customHeaders>
  77. <remove name="X-Powered-By" />
  78. <remove name="X-AspNet-Version" />
  79. <remove name="X-AspNetMvc-Version" />
  80. <!-- URL Rewrite module adds this in IIS Express, leaking the physical file path -->
  81. <remove name="X-SourceFiles" />
  82. </customHeaders>
  83. </httpProtocol>
  84. </system.webServer>
  85. <location path="css">
  86. <system.webServer>
  87. <staticContent>
  88. <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="01:00:00" />
  89. </staticContent>
  90. </system.webServer>
  91. </location>
  92. </configuration>

Powered by TurnKey Linux.