first commit
This commit is contained in:
30
Caddyfile
Normal file
30
Caddyfile
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user