21 lines
644 B
Caddyfile
21 lines
644 B
Caddyfile
# Caddyfile_kompress_eshop — imported by the central Caddy
|
|
# (docker-compose.caddy.yml). Caddy reaches the app by container name because
|
|
# it shares the external `kompress_eshop-net` network, same as gitea/biomed.
|
|
# Caddy serves automatic HTTPS and redirects http->https by default.
|
|
eshop.kompress.farmeris.sk {
|
|
encode zstd gzip
|
|
|
|
header {
|
|
Strict-Transport-Security "max-age=31536000"
|
|
X-Content-Type-Options "nosniff"
|
|
Referrer-Policy "strict-origin-when-cross-origin"
|
|
}
|
|
|
|
@static path /static/*
|
|
header @static Cache-Control "public, max-age=2592000"
|
|
|
|
rewrite /favicon.ico /static/favicon/favicon.ico
|
|
|
|
reverse_proxy kompress:5150
|
|
}
|