From 2bdbc0680109bc38b645277dd7ad870e9ef9fb94 Mon Sep 17 00:00:00 2001 From: Tobias Strobel Date: Sat, 11 Sep 2021 22:17:49 +0200 Subject: [PATCH] Add listen directive for Nextcloud notify_push --- nextcloud/nextcloud.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nextcloud/nextcloud.conf b/nextcloud/nextcloud.conf index 555695d..e0f165c 100644 --- a/nextcloud/nextcloud.conf +++ b/nextcloud/nextcloud.conf @@ -1,3 +1,7 @@ +upstream notifypush-handler { + server unix:/run/php/nc-notify_push.sock; +} + server { listen 443 ssl http2; listen [::]:443 ssl http2; @@ -109,4 +113,12 @@ server { location / { try_files $uri $uri/ /index.php$request_uri; } + location /push/ { + proxy_pass http://notifypush-handler; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } } \ No newline at end of file