Directly updating /etc/nginx/nginx.conf will simply revert back when Nginx gets restarted because it rebuilds the configuration files using templates each time. The template files are under /usr/syno/share/nginx.