summaryrefslogtreecommitdiff
path: root/roles/nginx/templates/generic-proxy-no-buffering-with-acme.conf.j2
diff options
context:
space:
mode:
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.j212
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;