location = /photo {
rewrite ^/(.*)$ $1/ permanent;
}
location ^~ /photo/ {
rewrite ^/photo/(.+)$ /$1 break;
root /usr/syno/synoman;
index index.cgi;
location = /photo/ {
try_files $uri /photo/index.cgi$is_args$query_string;
}
include conf.d/.alias.syno-app-portal.SynologyPhotos.conf;
}