Caddyfile 564 B

12345678910111213141516171819202122232425262728
  1. {
  2. # Debug: enable request logging
  3. admin off
  4. }
  5. # Catch-all: Synology forwards decrypted HTTP traffic to this port.
  6. # Route based on path regardless of Host header.
  7. :8080 {
  8. # HLS segments, thumbnails, uploaded raw files
  9. @uploads {
  10. path /uploads/*
  11. }
  12. handle @uploads {
  13. uri strip_prefix /uploads
  14. root * /app/uploads
  15. file_server
  16. }
  17. @api path /api/*
  18. handle @api {
  19. reverse_proxy api:3001 {
  20. header_down -Origin
  21. }
  22. }
  23. handle {
  24. reverse_proxy frontend:3000
  25. }
  26. }