diff --git a/Caddyfile_example b/Caddyfile_example index 02b28d8..275fb00 100644 --- a/Caddyfile_example +++ b/Caddyfile_example @@ -2,8 +2,9 @@ admin off } -http://127.0.0.1:8001 { +:8001 { root * ./static + respond /settings.json "\{\"api_url\": \"http://{http.request.host}:8000\"\}" file_server header { X-Frame-Options DENY diff --git a/static/settings.json b/static/settings.json deleted file mode 100644 index a6fb3e2..0000000 --- a/static/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "api_url": "http://127.0.0.1:8000" -}