ASP Classic blog framework - BrainOrdure
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
3.3KB

  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=C:\YourApp\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. <!-- Abacus RouteLLM endpoint for AI-generated post content -->
  32. <add key="AbacusApiBaseUrl" value="https://routellm.abacus.ai/v1" />
  33. <!-- Abacus API key (populate locally / via deployment secret) -->
  34. <add key="AbacusApiKey" value="" />
  35. <!-- Model name to send to the Abacus RouteLLM API -->
  36. <add key="AbacusModel" value="route-llm" />
  37. <!-- Editable prompt template used to generate AI post content -->
  38. <add key="AbacusGenerationPrompt" value="You write clear, engaging blog post content for a classic ASP blog. Return only valid JSON with two keys: summary and body. Summary must be 1 to 2 sentences. Body must be 3 to 5 short paragraphs separated by blank lines. Do not use markdown fences, bullets, or code blocks.&#10;&#10;Create blog content for this post title: {TITLE}&#10;Existing summary: {SUMMARY}&#10;Existing body: {BODY}&#10;Keep the title unchanged. Make the content readable and helpful for a general audience." />
  39. </appSettings>
  40. <system.webServer>
  41. <!-- Default document for the site root -->
  42. <defaultDocument>
  43. <files>
  44. <clear />
  45. <add value="Default.asp" />
  46. </files>
  47. </defaultDocument>
  48. <!-- URL Rewrite: send everything through Default.asp except static assets -->
  49. <rewrite>
  50. <rules>
  51. <rule name="Rewrite to Default.asp" stopProcessing="true">
  52. <match url="^(?!Default\.asp$|css/|js/|images/|aspunit/|favicon\.ico$).*$" />
  53. <conditions>
  54. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  55. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  56. </conditions>
  57. <action type="Rewrite" url="/Default.asp" />
  58. </rule>
  59. </rules>
  60. </rewrite>
  61. </system.webServer>
  62. </configuration>

Powered by TurnKey Linux.