Removed settings.json from static files, added it to the caddy file as dynamic respond directive

This commit is contained in:
Julian Müller (ChaoticByte) 2024-02-01 18:07:51 +01:00
parent c2183e2990
commit aa0a4aa401
2 changed files with 2 additions and 4 deletions

View file

@ -2,8 +2,9 @@
admin off admin off
} }
http://127.0.0.1:8001 { :8001 {
root * ./static root * ./static
respond /settings.json "\{\"api_url\": \"http://{http.request.host}:8000\"\}"
file_server file_server
header { header {
X-Frame-Options DENY X-Frame-Options DENY

View file

@ -1,3 +0,0 @@
{
"api_url": "http://127.0.0.1:8000"
}