From db51b48d756ac5e0d3316ac5618d167cc0d06409 Mon Sep 17 00:00:00 2001 From: Dawa Ometto Date: Thu, 19 Dec 2024 12:25:10 +0100 Subject: [PATCH] Add nginx gzip conf --- vars/nginx_vars.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vars/nginx_vars.yml b/vars/nginx_vars.yml index 894688b..558ce72 100644 --- a/vars/nginx_vars.yml +++ b/vars/nginx_vars.yml @@ -6,6 +6,13 @@ galaxy_nginx_vhost_config: auth: "{{ _molecule_active | ternary(omit, 'sram') }}" proxy_set_header: GX_SECRET: "{{ _galaxy_remote_user_secret | default(omit) }}" + gzip: 'on' + gzip_http_version: 1.1 + gzip_vary: 'on' + gzip_comp_level: 6 + gzip_proxied: any + gzip_types: text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript + gzip_buffers: 16 8k - name: api location: /api/ proxy_pass: "http://{{ _galaxy_local_address }}/api/" @@ -50,3 +57,4 @@ galaxy_nginx_vhost_config: Connection: 'Upgrade' client_max_body_size: '0' proxy_pass: http://localhost:{{ tusd_port }}/files; +