Caddyfile.production 443 B

12345678910111213141516
  1. # Dashboard production Caddy config. Serves the static SPA and proxies
  2. # /api/* and /ws to the client2server server.
  3. :80 {
  4. # API + WS reverse-proxy to the server
  5. reverse_proxy /api/* server1:3843
  6. reverse_proxy /ws server1:3843
  7. reverse_proxy /health server1:3843
  8. # SPA: serve static files, fall back to index.html for client routing
  9. root * /srv
  10. try_files {path} /index.html
  11. file_server
  12. encode gzip zstd
  13. }