1
0
Fork 0

Add listen directive for Nextcloud notify_push

This commit is contained in:
Tobias Strobel 2021-09-11 22:17:49 +02:00
parent 51bfee4f4f
commit 2bdbc06801
1 changed files with 12 additions and 0 deletions

View File

@ -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;
}
}