feat: compresión opcional
This commit is contained in:
@ -163,3 +163,4 @@ matrix:
|
||||
- sutty.abyaya.la
|
||||
nodo: sutty.comun
|
||||
force_https: yes
|
||||
enable_compression: yes
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user