Adding support for http2_push_preload to nginx 1.13.9+ configuration

This commit is contained in:
malixsys
2018-05-01 12:58:16 -04:00
parent aca8df1b09
commit 5da8bcc3b5
2 changed files with 28 additions and 1 deletions

View File

@@ -81,6 +81,9 @@ server {
gzip_comp_level 6;
proxy_pass http://{{ $.APP }}-{{ $upstream_port }};
{{ if (eq $.HTTP2_PUSH_SUPPORTED "true")}}
http2_push_preload on;
{{ end }}
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";