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
This commit is contained in:
parent
648d4e6b98
commit
80d5eb6358
1 changed files with 28 additions and 0 deletions
28
caddy/Caddyfile
Normal file
28
caddy/Caddyfile
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Add table
Reference in a new issue