Caddyfile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. app.database.pizza {
  2. header X-Robots-Tag "noindex, nofollow"
  3. handle /count* {
  4. reverse_proxy 127.0.0.1:3002
  5. }
  6. handle /api/* {
  7. reverse_proxy localhost:8081
  8. }
  9. handle {
  10. reverse_proxy localhost:5173
  11. }
  12. }
  13. db.database.pizza {
  14. header X-Robots-Tag "noindex, nofollow"
  15. reverse_proxy localhost:8081
  16. }
  17. www.database.pizza {
  18. redir https://database.pizza{uri} permanent
  19. }
  20. database.pizza {
  21. root * /home/pizzadatabase/database.pizza
  22. encode zstd gzip
  23. header {
  24. Permissions-Policy "camera=(), geolocation=(), microphone=()"
  25. Referrer-Policy "strict-origin-when-cross-origin"
  26. X-Content-Type-Options "nosniff"
  27. X-Frame-Options "DENY"
  28. }
  29. handle /count* {
  30. reverse_proxy 127.0.0.1:3002
  31. }
  32. handle {
  33. file_server
  34. }
  35. handle_errors {
  36. rewrite * /404.html
  37. file_server
  38. }
  39. }
  40. docs.database.pizza {
  41. root * /home/pizzadatabase/docs.database.pizza/current
  42. encode zstd gzip
  43. @immutable path /_astro/* /pagefind/*
  44. header @immutable Cache-Control "public, max-age=31536000, immutable"
  45. @plainText path_regexp ^/(raw/.*\.md|llms\.txt|llms-full\.txt)$
  46. header @plainText Content-Type "text/plain; charset=utf-8"
  47. header {
  48. Permissions-Policy "camera=(), geolocation=(), microphone=()"
  49. Referrer-Policy "strict-origin-when-cross-origin"
  50. X-Content-Type-Options "nosniff"
  51. X-Frame-Options "DENY"
  52. }
  53. file_server
  54. handle_errors {
  55. rewrite * /404.html
  56. file_server
  57. }
  58. }
  59. import /home/pizzadatabase/testmarket/Caddyfile
  60. import /home/pizzadatabase/pizza-admin/Caddyfile
  61. git.database.pizza {
  62. tls admin@database.pizza
  63. encode zstd gzip
  64. header X-Content-Type-Options nosniff
  65. handle /count* {
  66. reverse_proxy 127.0.0.1:3002
  67. }
  68. handle {
  69. reverse_proxy 127.0.0.1:3001
  70. }
  71. }
  72. tasks.database.pizza {
  73. tls admin@database.pizza
  74. encode zstd gzip
  75. header X-Content-Type-Options nosniff
  76. handle /count* {
  77. reverse_proxy 127.0.0.1:3002
  78. }
  79. handle {
  80. reverse_proxy 127.0.0.1:3456
  81. }
  82. }
  83. goatcounter.database.pizza {
  84. tls admin@database.pizza
  85. encode zstd gzip
  86. header X-Content-Type-Options nosniff
  87. reverse_proxy 127.0.0.1:3002
  88. }