forked from evolix/ansible-roles
redmine: enable gzip compression in nginx vhost
This commit is contained in:
parent
0dd7b26ade
commit
e40aefb4e0
|
@ -13,6 +13,7 @@ The **patch** part changes incrementally at each release.
|
||||||
### Added
|
### Added
|
||||||
* apache: add server status suffix in VHost (and default site) if missing
|
* apache: add server status suffix in VHost (and default site) if missing
|
||||||
* nginx: add server status suffix in VHost (and default site) if missing
|
* nginx: add server status suffix in VHost (and default site) if missing
|
||||||
|
* redmine: enable gzip compression in nginx vhost
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
* evocheck : version 19.04 from upstream
|
* evocheck : version 19.04 from upstream
|
||||||
|
|
|
@ -22,6 +22,14 @@ server {
|
||||||
|
|
||||||
include /etc/nginx/snippets/letsencrypt[.]conf;
|
include /etc/nginx/snippets/letsencrypt[.]conf;
|
||||||
|
|
||||||
|
gzip on;
|
||||||
|
gzip_disable "msie6";
|
||||||
|
gzip_vary on;
|
||||||
|
gzip_proxied any;
|
||||||
|
gzip_comp_level 6;
|
||||||
|
gzip_http_version 1.1;
|
||||||
|
gzip_types text/plain text/css application/json application/x-javascript application/javascript text/xml application/xml application/xml+rss text/javascript;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
if (!-f /home/{{ redmine_user }}/run/puma.pid) {
|
if (!-f /home/{{ redmine_user }}/run/puma.pid) {
|
||||||
return 503;
|
return 503;
|
||||||
|
|
Loading…
Reference in a new issue