how to modify Nginx configuration - hogehoge666/syno_moments_slider GitHub Wiki
Modifying the behavior of DSM APIs
You need to modify the Nginx configuration, but this is not easy. When Nginx is reloaded, DSM overwrites Nginx configuration and deletes changes you made.
There are few files DSM doesn't overwrite/delete.
"/etc/nginx/scgi_params" is one of them.
Adding new directives to this file changes the behavior of DSM APIs.
Adding a new virtual host
nginx.conf has the following directives.
include conf.d/http.*.conf;
include app.d/server.*.conf;
include sites-enabled/*;
You can add new config files to /etc/nginx/conf.d and create a new virtual host.