ditto/installation/Caddyfile
2025-01-17 18:59:25 -06:00

23 lines
No EOL
447 B
Caddyfile

example.com {
@public path /packs/* /instance/* /images/* /favicon.ico /sw.js /sw.js.map
handle /packs/* {
root * /opt/ditto/public
header Cache-Control "public, max-age=31536000, immutable"
header Strict-Transport-Security "max-age=31536000"
file_server
}
handle @public {
root * /opt/ditto/public
file_server
}
handle /metrics {
respond "Access denied" 403
}
handle {
reverse_proxy :4036
}
}