- Route /api/*, /docs, /health to FastAPI backend - Route all other requests to Vue.js frontend - Redirect demo.stifting.at to bim.stifting.at
28 lines
440 B
Caddyfile
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
|
|
}
|
|
|