This repository has been archived on 2025-09-28. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
transcript_frontend/Caddyfile_example

24 lines
1.1 KiB
Text
Raw Normal View History

2024-01-31 16:19:55 +01:00
{
admin off
}
https://example.org {
2024-01-31 16:19:55 +01:00
root * ./static
route /api/* {
uri strip_prefix /api
reverse_proxy localhost:8000
}
respond /settings.json "\{\"api_url\": \"https://{http.request.hostport}/api\"\}"
2024-01-31 16:19:55 +01:00
file_server
header {
X-Frame-Options DENY
X-Content-Type-Options nosniff
X-Permitted-Cross-Domain-Policies none
Referrer-Policy no-referrer
Cross-Origin-Embedder-Policy require-corp
Cross-Origin-Opener-Policy same-origin
Permissions-Policy accelerometer=(),ambient-light-sensor=(),autoplay=(),battery=(),camera=(),display-capture=(),document-domain=(),encrypted-media=(),fullscreen=(),gamepad=(),geolocation=(),gyroscope=(),layout-animations=(self),legacy-image-formats=(self),magnetometer=(),microphone=(self),midi=(),oversized-images=(self),payment=(),picture-in-picture=(),publickey-credentials-get=(),speaker-selection=(),sync-xhr=(self),unoptimized-images=(self),unsized-media=(self),usb=(),screen-wake-lock=(),web-share=(),xr-spatial-tracking=()
Cache-Control max-age=86400
}
}