Fix caddy routing
This commit is contained in:
parent
e26662597a
commit
92b3a5bc85
1 changed files with 6 additions and 4 deletions
|
|
@ -2,10 +2,6 @@
|
||||||
# Copy this file to Caddyfile and update the domain names
|
# Copy this file to Caddyfile and update the domain names
|
||||||
|
|
||||||
kaboot.example.com {
|
kaboot.example.com {
|
||||||
root * /srv/frontend
|
|
||||||
file_server
|
|
||||||
try_files {path} /index.html
|
|
||||||
|
|
||||||
handle /api/* {
|
handle /api/* {
|
||||||
reverse_proxy kaboot-backend:3001
|
reverse_proxy kaboot-backend:3001
|
||||||
}
|
}
|
||||||
|
|
@ -13,6 +9,12 @@ kaboot.example.com {
|
||||||
handle /health {
|
handle /health {
|
||||||
reverse_proxy kaboot-backend:3001
|
reverse_proxy kaboot-backend:3001
|
||||||
}
|
}
|
||||||
|
|
||||||
|
handle {
|
||||||
|
root * /srv/frontend
|
||||||
|
try_files {path} /index.html
|
||||||
|
file_server
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
auth.example.com {
|
auth.example.com {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue