Fix example caddyfile by adding rewrite for /api
This commit is contained in:
parent
e76131fabb
commit
3b9fab0ebb
1 changed files with 2 additions and 1 deletions
|
@ -3,11 +3,12 @@
|
|||
}
|
||||
|
||||
https://example.org {
|
||||
root * ./static
|
||||
rewrite /api /api/
|
||||
route /api/* {
|
||||
uri strip_prefix /api
|
||||
reverse_proxy localhost:8000
|
||||
}
|
||||
root * ./static
|
||||
respond /settings.json "\{\"api_url\": \"https://{http.request.hostport}/api\"\}"
|
||||
file_server
|
||||
header {
|
||||
|
|
Reference in a new issue