ASP Classic blog framework - BrainOrdure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 line
5.2KB

  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.Jet.OLEDB.4.0;Data Source=C:\inetpub\wwwroot\aspblogbrainordure-test\db\webdata.mdb;User Id=admin;Password=;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. <!-- Image generation provider (pollinations / abacus) -->
  32. <add key="AiImageProvider" value="pollinations" />
  33. <!-- Base URL for image generation when using the current provider -->
  34. <add key="AiImageBaseUrl" value="https://image.pollinations.ai/prompt/" />
  35. <!-- Optional Abacus image endpoint override if Abacus is ever enabled for images -->
  36. <add key="AbacusImageBaseUrl" value="" />
  37. <!-- Abacus RouteLLM endpoint for AI-generated post content -->
  38. <add key="AbacusApiBaseUrl" value="https://routellm.abacus.ai/v1" />
  39. <!-- Abacus API key (populate locally / via deployment secret) -->
  40. <add key="AbacusApiKey" value="" />
  41. <!-- Model name to send to the Abacus RouteLLM API -->
  42. <add key="AbacusModel" value="route-llm" />
  43. <!-- Editable prompt template used to generate AI post content -->
  44. <add key="AbacusGenerationPrompt" value="You are a panel of 150 expert writers, researchers, editors, and subject-matter specialists on the topic: {TITLE}.&#10;&#10;Your task is to write a long, interesting, useful blog post for a general audience and suggest public domain or CC0 image ideas that would fit the article.&#10;&#10;Return only valid JSON with exactly three keys:&#10;&#10;{&quot;summary&quot;:&quot;&quot;,&quot;body&quot;:&quot;&quot;,&quot;images&quot;:[]}&#10;&#10;Rules:&#10;- Return only valid JSON.&#10;- Do not use markdown fences.&#10;- Do not use bullet points.&#10;- Do not use numbered lists.&#10;- Do not include anything outside the JSON object.&#10;- Keep the title unchanged.&#10;- The summary must be 1 to 2 clear, engaging sentences.&#10;- The body must be 900 to 1,400 words.&#10;- The body should be 8 to 12 short-to-medium paragraphs.&#10;- Separate paragraphs with blank lines.&#10;- Make the writing clear, helpful, and interesting.&#10;- Use a warm, human, conversational tone.&#10;- Avoid sounding like AI-generated content.&#10;- Do not exaggerate or make unsupported claims.&#10;&#10;Image rules:&#10;- Include 3 to 5 image suggestions in the images array.&#10;- Suggest only images that are likely to be available as public domain, CC0, or freely reusable images.&#10;- Prefer image sources such as Wikimedia Commons, Library of Congress, NASA, National Archives, public domain museum collections, or official government archives.&#10;- Do not invent exact image URLs unless they are already provided in the existing content.&#10;- Do not use copyrighted stock photo sites.&#10;- Do not suggest Unsplash as public domain.&#10;- Each image object must include placement, search_query, suggested_source, caption, alt_text, and license_requirement.&#10;- The license_requirement must say: Verify that the image is public domain or CC0 before publishing.&#10;&#10;Use the existing content as source material, but improve it significantly.&#10;&#10;Create blog content for this post title: {TITLE}&#10;Existing summary: {SUMMARY}&#10;Existing body: {BODY}" />
  45. </appSettings>
  46. <system.webServer>
  47. <!-- Default document for the site root -->
  48. <defaultDocument>
  49. <files>
  50. <clear />
  51. <add value="Default.asp" />
  52. </files>
  53. </defaultDocument>
  54. <!-- URL Rewrite: send everything through Default.asp except static assets -->
  55. <rewrite>
  56. <rules>
  57. <rule name="Rewrite to Default.asp" stopProcessing="true">
  58. <match url="^(?!Default\.asp$|css/|js/|images/|aspunit/|favicon\.ico$).*$" />
  59. <conditions>
  60. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  61. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  62. </conditions>
  63. <action type="Rewrite" url="/Default.asp" />
  64. </rule>
  65. </rules>
  66. </rewrite>
  67. </system.webServer>
  68. </configuration>

Powered by TurnKey Linux.