nginx/ansible-role-nginx-config

Allow nginx.conf.j2 to create gzip settings

Closed this issue · 2 comments

Is your feature request related to a problem? Please describe

Trying to add gzip settings in nginx.conf

Describe the solution you'd like

Using the same variables used in the http/default.conf.j2

Describe alternatives you've considered

If there is a way to already do this please let me know!

Additional context

When creating the nginx.conf I am using the nginx.conf.j2 template file. If this is the wrong way to do it please let me know!

Heya! The gzip module is only available inside the HTTP context, so you'd need to use/tweak the nginx_config_http_template parameter to set up gzip 😄

Got it thank you for the quick response! @alessfg