feat: compresión opcional

This commit is contained in:
f
2025-01-02 13:44:41 -03:00
parent f1c5ee7654
commit c0b5978ef5
2 changed files with 13 additions and 0 deletions

View File

@ -163,3 +163,4 @@ matrix:
- sutty.abyaya.la
nodo: sutty.comun
force_https: yes
enable_compression: yes

View File

@ -1,5 +1,17 @@
# BEGIN PROXY
location / {
{% if vhost.enable_compression | default(false) %}
gzip on;
gzip_static on;
gzip_proxied any;
gzip_http_version 1.1;
gzip_comp_level 5;
gzip_min_length 10240;
gzip_vary on;
gzip_types application/atom+xml application/javascript text/javascript application/json application/rss+xml application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/svg+xml image/x-icon text/css text/plain text/x-component;
gzip_disable "msie6";
{% endif %}
client_max_body_size 1G;
proxy_ssl_verify off;
proxy_ssl_server_name on;