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