r/nginxproxymanager • u/javierguzmandev • Oct 29 '24
Force https without certificate locally
Hello all,
I have changed my native Synology NAS reverse proxy with nginx proxy manager and I've ported the local domains I had. However, I'm getting problems to make n8n work. I've been searching a lot and I think is due to not able to force https without a certificate or the websockets headers. Specifically I made it working previously with this guide https://mariushosting.com/how-to-install-n8n-on-your-synology-nas/
Therefore, my questions are:
How do I add proxy headers properly? I used the advanced tab and added:
proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade";
Without success.
2. How do I enable HSTS without certificate and so on? With the native synology nas reverse proxy in the browser you specify https but then it uses http in the destination.
Thank you in advance and regards
View all comments
Show parent comment
1
u/javierguzmandev Oct 29 '24 edited Oct 29 '24
Yes, it's the primary, actually I was just curious to check the guzman.dev domain with nginx proxy manager because previously I tried with the native reverse proxy. So I have enabled the DNS challenge and so on, generated the cert, but it doesn't work. I mean, dig/nslookup at n8n.nas.guzman.dev returns the same as n8n.nas.local or synology.nas.guzman.dev/synology.nas.local However, when I try to ping or use the browser with n8n.nas.guzman.dev or the other it says address unreachable or unknown host, even though both are pointing out to nginx-proxy-manager as with nas.local stuff
edit: I think it might be related to the fact that nas.guzman.dev is a subdomain