mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 14:49:07 +00:00
enable compression
This commit is contained in:
parent
2e27347225
commit
ccb4781c06
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user