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.

149 wiersze
5.6KB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <appSettings>
  4. <!--
  5. Optional Access connection string. Change Data Source after creating
  6. the application's database, or replace this setting for another store.
  7. -->
  8. <add key="ConnectionString"
  9. value="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\YourApp\db\webdata.accdb;Persist Security Info=False;" />
  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. <!-- Contact form email (the mailbox password comes from SMTP_PASSWORD in the project-root .env file) -->
  31. <add key="ContactRecipient" value="covington.daniel@gmail.com" />
  32. <add key="SmtpServer" value="netsol-smtp-oxcs.hostingplatform.com" />
  33. <add key="SmtpPort" value="465" />
  34. <add key="SmtpUsername" value="danielcovington@postcardmojo.com" />
  35. <add key="SmtpUseSsl" value="true" />
  36. </appSettings>
  37. <system.webServer>
  38. <!-- Default document for the site root -->
  39. <defaultDocument>
  40. <files>
  41. <clear />
  42. <add value="Default.asp" />
  43. </files>
  44. </defaultDocument>
  45. <!-- Serve WebP images (not registered by default on older IIS) -->
  46. <staticContent>
  47. <remove fileExtension=".webp" />
  48. <mimeMap fileExtension=".webp" mimeType="image/webp" />
  49. </staticContent>
  50. <!-- Compress static files and ASP output (only takes effect where the IIS compression modules are installed) -->
  51. <urlCompression doStaticCompression="true" doDynamicCompression="true" />
  52. <!--
  53. Branded 404 page. File mode keeps the 404 status (ExecuteURL on a static
  54. file returns 200). errorMode="Custom" because requests proxied from nginx
  55. on the same machine count as local, and IIS would otherwise show them its
  56. detailed error pages.
  57. -->
  58. <httpErrors errorMode="Custom">
  59. <remove statusCode="404" subStatusCode="-1" />
  60. <error statusCode="404" path="404.html" responseMode="File" />
  61. </httpErrors>
  62. <rewrite>
  63. <rules>
  64. <!-- Canonical host: www.postcardmojo.com -> https://postcardmojo.com (301) -->
  65. <rule name="Redirect www to apex" stopProcessing="true">
  66. <match url="(.*)" />
  67. <conditions>
  68. <add input="{HTTP_HOST}" pattern="^www\.postcardmojo\.com$" />
  69. </conditions>
  70. <action type="Redirect" url="https://postcardmojo.com/{R:1}" redirectType="Permanent" />
  71. </rule>
  72. <!-- Canonical scheme: plain http (as reported by the TLS proxy) -> https (301) -->
  73. <rule name="Redirect http to https" stopProcessing="true">
  74. <match url="(.*)" />
  75. <conditions>
  76. <add input="{HTTP_HOST}" pattern="^postcardmojo\.com$" />
  77. <add input="{HTTP_X_FORWARDED_PROTO}" pattern="^http$" />
  78. </conditions>
  79. <action type="Redirect" url="https://postcardmojo.com/{R:1}" redirectType="Permanent" />
  80. </rule>
  81. <!-- URL Rewrite: send everything through Default.asp except static assets -->
  82. <rule name="Rewrite to Default.asp" stopProcessing="true">
  83. <match url="^(?!Default\.asp$|css/|js/|images/|aspunit/|favicon\.ico$).*$" />
  84. <conditions>
  85. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  86. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  87. </conditions>
  88. <action type="Rewrite" url="/Default.asp" />
  89. </rule>
  90. </rules>
  91. </rewrite>
  92. </system.webServer>
  93. <!--
  94. Long browser caching for static assets. When home.css or nav.js changes,
  95. bump the ?v= value on their links in the views so visitors get the new file.
  96. -->
  97. <location path="images">
  98. <system.webServer>
  99. <staticContent>
  100. <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" cacheControlCustom="public" />
  101. </staticContent>
  102. </system.webServer>
  103. </location>
  104. <location path="css">
  105. <system.webServer>
  106. <staticContent>
  107. <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" cacheControlCustom="public" />
  108. </staticContent>
  109. </system.webServer>
  110. </location>
  111. <location path="js">
  112. <system.webServer>
  113. <staticContent>
  114. <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" cacheControlCustom="public" />
  115. </staticContent>
  116. </system.webServer>
  117. </location>
  118. <location path="favicon.ico">
  119. <system.webServer>
  120. <staticContent>
  121. <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00" cacheControlCustom="public" />
  122. </staticContent>
  123. </system.webServer>
  124. </location>
  125. </configuration>

Powered by TurnKey Linux.