enable compression

This commit is contained in:
Simon Larsen 2023-10-31 14:10:57 +00:00
parent 2e27347225
commit ccb4781c06
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE

View File

@ -62,6 +62,11 @@ upstream otel-collector {
server {
gzip on;
gzip_types text/plain application/xml text/html application/javascript text/javascript text/css application/json;
gzip_proxied no-cache no-store private expired auth;
gzip_min_length 1000;
listen 80 default_server;
server_name _; # All domains.
@ -73,6 +78,7 @@ server {
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
location / {
return 301 https://$host$request_uri;
}
@ -142,6 +148,11 @@ server {
server {
gzip on;
gzip_types text/plain application/xml text/html application/javascript text/javascript text/css application/json;
gzip_proxied no-cache no-store private expired auth;
gzip_min_length 1000;
listen 443 default_server ssl; # Port HTTPS
@ -232,6 +243,11 @@ server {
}
server {
gzip on;
gzip_types text/plain application/xml text/html application/javascript text/javascript text/css application/json;
gzip_proxied no-cache no-store private expired auth;
gzip_min_length 1000;
listen 80;
@ -403,6 +419,7 @@ server {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://status-page;
}