diff options
author | Christian Pointner <equinox@spreadspace.org> | 2019-10-12 05:36:28 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2019-10-12 05:36:28 +0200 |
commit | 8477c34bb3470341fb8ebb7b18d3d694d2941f3b (patch) | |
tree | a73cb6a053dab23b4cf1a6ef8dc92d5e214cd862 /roles/nginx/templates/generic-proxy-no-buffering-with-acme.conf.j2 | |
parent | sk-cloudia nginx role (diff) |
refactoring nginx config snippets
Diffstat (limited to 'roles/nginx/templates/generic-proxy-no-buffering-with-acme.conf.j2')
-rw-r--r-- | roles/nginx/templates/generic-proxy-no-buffering-with-acme.conf.j2 | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/roles/nginx/templates/generic-proxy-no-buffering-with-acme.conf.j2 b/roles/nginx/templates/generic-proxy-no-buffering-with-acme.conf.j2 index 784b2590..8cad2994 100644 --- a/roles/nginx/templates/generic-proxy-no-buffering-with-acme.conf.j2 +++ b/roles/nginx/templates/generic-proxy-no-buffering-with-acme.conf.j2 @@ -1,10 +1,3 @@ -# used for websockets -# set http_connection to either upgrade or close (as normal) -map $http_upgrade $connection_upgrade { - default upgrade; - '' close; -} - server { listen 80; listen [::]:80; @@ -29,10 +22,7 @@ server { include snippets/hsts.conf; location / { - proxy_buffering off; - proxy_ignore_headers "X-Accel-Buffering"; - proxy_request_buffering off; - proxy_http_version 1.1; + include snippets/proxy-nobuff.conf; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; |