2026-02-05 23:16:18 +03:00
|
|
|
{
|
|
|
|
|
auto_https off
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:80 {
|
|
|
|
|
redir https://{host}{uri}
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-06 11:19:50 +03:00
|
|
|
{$DOMAIN}:443 {
|
|
|
|
|
tls /etc/caddy/certs/{$DOMAIN}.crt /etc/caddy/certs/{$DOMAIN}.key
|
|
|
|
|
|
2026-02-05 23:16:18 +03:00
|
|
|
# Disable HSTS
|
2026-02-06 11:19:50 +03:00
|
|
|
header Strict-Transport-Security ""
|
|
|
|
|
|
2026-02-05 23:16:18 +03:00
|
|
|
# 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
|
|
|
|
|
}
|
|
|
|
|
}
|