Caddyfile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. app.database.pizza {
  2. header X-Robots-Tag "noindex, nofollow"
  3. handle /api/* {
  4. reverse_proxy localhost:8081
  5. }
  6. handle {
  7. reverse_proxy localhost:5173
  8. }
  9. }
  10. db.database.pizza {
  11. header X-Robots-Tag "noindex, nofollow"
  12. reverse_proxy localhost:8081
  13. }
  14. www.database.pizza {
  15. redir https://database.pizza{uri} permanent
  16. }
  17. database.pizza {
  18. root * /home/pizzadatabase/database.pizza
  19. encode zstd gzip
  20. header {
  21. Permissions-Policy "camera=(), geolocation=(), microphone=()"
  22. Referrer-Policy "strict-origin-when-cross-origin"
  23. X-Content-Type-Options "nosniff"
  24. X-Frame-Options "DENY"
  25. }
  26. file_server
  27. handle_errors {
  28. rewrite * /404.html
  29. file_server
  30. }
  31. }
  32. docs.database.pizza {
  33. root * /home/pizzadatabase/docs.database.pizza/current
  34. encode zstd gzip
  35. @immutable path /_astro/* /pagefind/*
  36. header @immutable Cache-Control "public, max-age=31536000, immutable"
  37. @plainText path_regexp ^/(raw/.*\.md|llms\.txt|llms-full\.txt)$
  38. header @plainText Content-Type "text/plain; charset=utf-8"
  39. header {
  40. Permissions-Policy "camera=(), geolocation=(), microphone=()"
  41. Referrer-Policy "strict-origin-when-cross-origin"
  42. X-Content-Type-Options "nosniff"
  43. X-Frame-Options "DENY"
  44. }
  45. file_server
  46. handle_errors {
  47. rewrite * /404.html
  48. file_server
  49. }
  50. }
  51. import /home/pizzadatabase/testmarket/Caddyfile
  52. import /home/pizzadatabase/pizza-admin/Caddyfile