mirror of
https://github.com/michivonah/bbzw-horizon.git
synced 2025-12-22 17:16:27 +01:00
add Caddy as reverse proxy
This commit is contained in:
parent
bec06107dc
commit
afce0130e1
2 changed files with 34 additions and 0 deletions
25
caddy/Caddyfile
Normal file
25
caddy/Caddyfile
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<DOMAIN> {
|
||||
handle_path /api/* {
|
||||
rewrite /api/* /{http.request.uri.path.4}
|
||||
reverse_proxy webservice-inp21b:8080
|
||||
}
|
||||
|
||||
handle / {
|
||||
reverse_proxy frontend:5173
|
||||
}
|
||||
|
||||
tls internal
|
||||
}
|
||||
|
||||
http://<DOMAIN> {
|
||||
handle_path /api/* {
|
||||
rewrite /api/* /{http.request.uri.path.4}
|
||||
reverse_proxy webservice-inp21b:8080
|
||||
}
|
||||
|
||||
handle / {
|
||||
reverse_proxy frontend:5173
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue