Since I have no proxy rules in the UI, I don't have an example for the structure of
/etc/nginx/app.d/server.ReverseProxy.conf. I am unclear wether it only contains a server block and its child elements or contains different blocks. The directives
server_name and
listen_port must be unique accross all the server blocks.
Though, the more important concern is what made the symlink "/etc/nginx/conf.d -> /usr/local/etc/nginx/conf.d" disappear?! The reverse proxy in the UI should not interfere with content in this folder.
This error message indicates that you did remove the reverse proxy configuration for the block you copied over to the /etc/nginx/conf.d folder. Since the path is specific for a reverse proy configuration done by the ui, it will be removed with the rp-entry the ui.
The certificates are stored underneath the folder /usr/syno/etc/certificate/_archive.
A command like this should help to find in which path the correct certificate is:
Code:
find /usr/syno/etc/certificate/_archive/ -type f -exec bash -c 'openssl x509 -in {} -text -noout 2>/dev/null | grep -E "DNS:.*" && echo {} ' \;
Of course you will need to replace the certificate path with the paths in whatever subfoler of /usr/syno/etc/certificate/_archive/ the files for the certifcaete of the domain are stored.