Files
GrapheneOS-AttestationServe…/Caddyfile
2026-02-05 23:16:18 +03:00

31 lines
586 B
Caddyfile

{
auto_https off
}
:80 {
redir https://{host}{uri}
}
attestation.app:443 {
tls /etc/caddy/certs/attestation.app.crt /etc/caddy/certs/attestation.app.key
# Disable HSTS
header Strict-Transport-Security ""
# Serve static files (HTML, CSS, images, etc.)
root * /srv/static
file_server
# Proxy API endpoints to the attestation server
reverse_proxy /api/* attestation:8080
# Proxy Auditor app endpoints
reverse_proxy /auditor/* attestation:8080
# Enable logging
log {
output stdout
format json
}
}