File: //etc/nginx/app.d/dsm.Contacts.conf
location ~ ^/carddav/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-Port $remote_port;
proxy_set_header X-Script-Name /carddav;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:5555;
rewrite /carddav/(.*) /$1 break;
}
location ~ ^/CtSocketIo/socket.io/ {
rewrite /CtSocketIo(/.*) $1 break;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-Port $remote_port;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_pass http://unix:/run/pushserver_http.sock;
}
location ~ ^()?/contacts/redirect.php$ {
default_type text/html;
alias /usr/syno/synoman/webman/3rdparty/Contacts/redirect.php;
}
rewrite ^/.well-known/carddav /carddav/ redirect;
location ~ ^/volume(?:X|USB|SATA|Gluster)?\d+/ {
internal;
root /;
open_file_cache off;
include app.d/x-accel.*.conf;
include conf.d/x-accel.*.conf;
}