Closed BVGorp closed 5 years ago
"Go to folder /usr/local/etc/nginx/sites-enabled/" how can I go to this folder? would u please explain?
"server_name
U said restart nginx on the synology does it mean restart the synology? thank you
I made your files then copy to the location u talked about. But it make the DSM quit. I need to go in then delete the files again to make the DSM working.
Hi,
I was trying to get UNMS behind the Synology reverse proxy so the Synology can handle the ssl certificate. This did not work out of the box with the config page on the Synology. I have more services running through this and reusing the certificate for that was preferred. You'll need a domain name you own to do this. I use different hostnames for different services.
I installed the Docker container as described on the wiki. (https://github.com/oznu/docker-unms/wiki/UNMS-on-Synology-DSM) But i left the environment values on 443 not 8443. Since the UNMS will be on port 443 for clients connecting on the external hostname.
Make sure you request a certificate from Lets Encrypt on the Synology and mark it as the default certificate. Use the Subject Alternate Names field to add additional host names to you certificate. All host names in the certificate need top point to the Synology for validation. I use a php file in webstation to redirect from http to https
Instead of configuring the reverse proxy in the control panel of the Synology you'll have to open the console of the Synology.
Log in with an admin user on ssh console and switch to root user (sudo su -) Go to folder /usr/local/etc/nginx/sites-enabled/ Create a file there eg unms.conf Config is:
Restart nginx on the Synology (not in the docker container) (synoservice --restart nginx) The file will survive a reboot of the Synology. If it will survive a DSM upgrade i don't know. To be safe save a copy of unms.conf on /volume1
Please test and reply if things are not clear.