diff --git a/Caddyfile_example b/Caddyfile_example index c87d1be..67dc1db 100644 --- a/Caddyfile_example +++ b/Caddyfile_example @@ -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 {