refs #703: use gzip for Smilegate backoffice
This commit is contained in:
58
deploy/caddy/smilegate/Caddyfile
Normal file
58
deploy/caddy/smilegate/Caddyfile
Normal file
@@ -0,0 +1,58 @@
|
||||
{
|
||||
servers {
|
||||
protocols h1 h2
|
||||
}
|
||||
}
|
||||
|
||||
http://193.122.114.213 {
|
||||
encode zstd gzip
|
||||
header {
|
||||
X-Content-Type-Options nosniff
|
||||
Referrer-Policy strict-origin-when-cross-origin
|
||||
}
|
||||
log {
|
||||
output file /var/log/caddy/smilegate-console-access.log
|
||||
format console
|
||||
}
|
||||
reverse_proxy 127.0.0.1:8622 {
|
||||
transport http {
|
||||
versions 1.1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
smilegate.cloud-handson.com {
|
||||
encode zstd gzip
|
||||
header {
|
||||
X-Content-Type-Options nosniff
|
||||
Referrer-Policy strict-origin-when-cross-origin
|
||||
}
|
||||
log {
|
||||
output file /var/log/caddy/smilegate-console-access.log
|
||||
format console
|
||||
}
|
||||
reverse_proxy 127.0.0.1:8622 {
|
||||
transport http {
|
||||
versions 1.1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
smilegate-backoffice.cloud-handson.com {
|
||||
# Edge clients have left completed zstd-compressed HTML navigations pending.
|
||||
# Use broadly supported gzip on the management UI; the console keeps zstd.
|
||||
encode gzip
|
||||
header {
|
||||
X-Content-Type-Options nosniff
|
||||
Referrer-Policy strict-origin-when-cross-origin
|
||||
}
|
||||
log {
|
||||
output file /var/log/caddy/smilegate-backoffice-access.log
|
||||
format console
|
||||
}
|
||||
reverse_proxy 127.0.0.1:8082 {
|
||||
transport http {
|
||||
versions 1.1
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user