prod setup
This commit is contained in:
18
Caddyfile
18
Caddyfile
@@ -1,5 +1,15 @@
|
||||
eshop.example.com {
|
||||
encode gzip
|
||||
http://{$APP_DOMAIN:eshop.kompress.farmeris.sk} {
|
||||
redir https://{$APP_DOMAIN:eshop.kompress.farmeris.sk}{uri} permanent
|
||||
}
|
||||
|
||||
https://{$APP_DOMAIN: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"
|
||||
@@ -8,7 +18,3 @@ eshop.example.com {
|
||||
|
||||
reverse_proxy kompress:5150
|
||||
}
|
||||
|
||||
eshop.example.com {
|
||||
redir https://eshop.example.com{uri} permanent
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user