Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

125 строки
4.4KB

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

Powered by TurnKey Linux.