chore: fix path prefix

This commit is contained in:
DarkSky
2022-12-20 16:48:26 +08:00
parent 2f778e732c
commit 9fdb3c4311
+9 -7
View File
@@ -15,13 +15,15 @@
Cache-Control "public, max-age=86400, must-revalidate"
}
reverse_proxy /api/* {$API_SERVER} {
health_uri /api/healthz
@error status 500 502 503 503
handle_response @error {
root * /dist
rewrite * /50x.html
file_server
handle /api/* {
reverse_proxy {$API_SERVER} {
health_uri /api/healthz
@error status 500 502 503 503
handle_response @error {
root * /dist
rewrite * /50x.html
file_server
}
}
}