Removed settings.json from static files, added it to the caddy file as dynamic respond directive
This commit is contained in:
parent
c2183e2990
commit
aa0a4aa401
2 changed files with 2 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
{
|
|
||||||
"api_url": "http://127.0.0.1:8000"
|
|
||||||
}
|
|
Reference in a new issue