feat: gzip compression

This commit is contained in:
Andras Bacsai 2022-04-28 16:40:23 +02:00
parent f8f17832de
commit 1140afe2c9

View File

@ -95,6 +95,8 @@ backend {{domain}}
{{/isHttps}} {{/isHttps}}
http-request add-header X-Forwarded-Host %[req.hdr(host),lower] http-request add-header X-Forwarded-Host %[req.hdr(host),lower]
server {{id}} {{id}}:{{port}} server {{id}} {{id}}:{{port}}
compression algo gzip
compression type text/html text/css text/plain text/xml text/x-component text/javascript application/x-javascript application/javascript application/json application/manifest+json application/vnd.api+json application/xml application/xhtml+xml application/rss+xml application/atom+xml application/vnd.ms-fontobject application/x-font-ttf application/x-font-opentype application/x-font-truetype image/svg+xml image/x-icon image/vnd.microsoft.icon font/ttf font/eot font/otf font/opentype
{{/isRunning}} {{/isRunning}}
{{/applications}} {{/applications}}
@ -111,6 +113,8 @@ backend {{domain}}
{{/isHttps}} {{/isHttps}}
http-request add-header X-Forwarded-Host %[req.hdr(host),lower] http-request add-header X-Forwarded-Host %[req.hdr(host),lower]
server {{id}} {{id}}:{{port}} server {{id}} {{id}}:{{port}}
compression algo gzip
compression type text/html text/css text/plain text/xml text/x-component text/javascript application/x-javascript application/javascript application/json application/manifest+json application/vnd.api+json application/xml application/xhtml+xml application/rss+xml application/atom+xml application/vnd.ms-fontobject application/x-font-ttf application/x-font-opentype application/x-font-truetype image/svg+xml image/x-icon image/vnd.microsoft.icon font/ttf font/eot font/otf font/opentype
{{/isRunning}} {{/isRunning}}
{{/services}} {{/services}}
@ -126,6 +130,8 @@ backend {{domain}}
{{/isHttps}} {{/isHttps}}
http-request add-header X-Forwarded-Host %[req.hdr(host),lower] http-request add-header X-Forwarded-Host %[req.hdr(host),lower]
server {{id}} {{id}}:{{port}} check fall 10 server {{id}} {{id}}:{{port}} check fall 10
compression algo gzip
compression type text/html text/css text/plain text/xml text/x-component text/javascript application/x-javascript application/javascript application/json application/manifest+json application/vnd.api+json application/xml application/xhtml+xml application/rss+xml application/atom+xml application/vnd.ms-fontobject application/x-font-ttf application/x-font-opentype application/x-font-truetype image/svg+xml image/x-icon image/vnd.microsoft.icon font/ttf font/eot font/otf font/opentype
{{/coolify}} {{/coolify}}
`; `;