first commit

This commit is contained in:
MoonDev
2026-02-05 23:16:18 +03:00
commit 780e1a7f01
7 changed files with 403 additions and 0 deletions

30
Caddyfile Normal file
View File

@@ -0,0 +1,30 @@
{
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
}
}