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.

63 lines
2.4 KiB

4 years ago
  1. #
  2. # Copyright (C) 2019 Josh Habdas <jhabdas@protonmail.com>
  3. #
  4. # This file is part of After Dark.
  5. #
  6. # After Dark is free software: you can redistribute it and/or modify
  7. # it under the terms of the GNU Affero General Public License as published
  8. # by the Free Software Foundation, either version 3 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # After Dark is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU Affero General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU Affero General Public License
  17. # along with this program. If not, see <https://www.gnu.org/licenses/>.
  18. #
  19. baseurl = "https://after-dark.habd.as/" # Controls base URL sitewide
  20. title = "After Dark" # Homepage title and page title suffix
  21. paginate = 40 # Number of items to show before paginating
  22. copyright = "Copyright &copy; Josh Habdas. Licensed under <a target=\"_blank\" rel=\"external noopener license\" href=\"https://www.gnu.org/licenses/agpl.html\">AGPL-3.0-or-later</a>."
  23. # Controls default theme and theme components
  24. theme = [
  25. "after-dark" # AGPL-3.0-or-later
  26. ]
  27. disableLiveReload = false # Optional, set true to disable live reload
  28. enableRobotsTXT = true # Suggested, enable robots.txt file
  29. sectionPagesMenu = "main" # Enable menu system for lazy bloggers
  30. [markup.goldmark.renderer]
  31. unsafe = true # Optional, allows HTML inside your CommonMark content
  32. [markup.tableOfContents]
  33. startLevel = 1 # Suggested, draws TOC using all heading levels
  34. endLevel = 6 # Suggested, draws TOC using all heading levels
  35. [markup.highlight]
  36. noClasses = false # Suggested, used for custom syntax highlighting
  37. [deployment]
  38. order = [".mp4", ".gif$", ".png$", ".jpg$", ".bpg$", ".svg$"]
  39. [[deployment.targets]]
  40. name = "s3-aws"
  41. URL = "s3://after-dark.habd.as?region=us-east-1"
  42. cloudFrontDistributionID = "E15C0TR21AL7CY"
  43. [[deployment.matchers]]
  44. pattern = "^.+\\.(js|css|svg|ttf|woff|woff2|eot|png|gif|pdf)$"
  45. cacheControl = "max-age=630720000, no-transform, public"
  46. gzip = true
  47. [[deployment.matchers]]
  48. pattern = "^.+\\.(mp4|jpg|jpeg|bpg)$"
  49. cacheControl = "max-age=630720000, no-transform, public" # cache static assets for 20 years
  50. gzip = false
  51. [[deployment.matchers]]
  52. pattern = "^.+\\.(html|xml|json)$"
  53. cacheControl = "max-age=300, no-transform, public" # cache output formats for 5 minutes
  54. gzip = true