Changed the example Caddyfile to be more useful

This commit is contained in:
Julian Müller (ChaoticByte) 2024-02-01 18:47:18 +01:00
parent aa0a4aa401
commit e76131fabb

View file

@ -2,9 +2,13 @@
admin off admin off
} }
:8001 { https://example.org {
root * ./static root * ./static
respond /settings.json "\{\"api_url\": \"http://{http.request.host}:8000\"\}" route /api/* {
uri strip_prefix /api
reverse_proxy localhost:8000
}
respond /settings.json "\{\"api_url\": \"https://{http.request.hostport}/api\"\}"
file_server file_server
header { header {
X-Frame-Options DENY X-Frame-Options DENY