infrastructure/caddy/Caddyfile
warnason 80d5eb6358 Configure Caddy reverse proxy for bim.stifting.at
- Route /api/*, /docs, /health to FastAPI backend
- Route all other requests to Vue.js frontend
- Redirect demo.stifting.at to bim.stifting.at
2026-04-20 19:05:46 +02:00

28 lines
440 B
Caddyfile

git.stifting.at {
reverse_proxy forgejo:3000
encode gzip zstd
}
bim.stifting.at {
handle /api/* {
reverse_proxy bim-backend:8000
}
handle /docs {
reverse_proxy bim-backend:8000
}
handle /openapi.json {
reverse_proxy bim-backend:8000
}
handle /health {
reverse_proxy bim-backend:8000
}
handle {
reverse_proxy bim-frontend:5173
}
encode gzip zstd
}
demo.stifting.at {
redir https://bim.stifting.at{uri} permanent
}