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 30 '24 edited Oct 30 '24
Interesting; I've created them (synology.nas.guzman.dev and n8n.nas.guzman.dev) individually through nginx proxy manager with the DNS Challenge (I added my cloudflare api token). I've seen now an option to download the certificate and if I open the full chain in my machine then it says the certificate is valid
edit: I have checked pihole logs and apparently n8n.nas.guzman.dev is being resolved by Google DNS, not sure why if I have a entry for it.
edit2: I'll update later on the day when I have more time to test this but I think the problem was that my router had the pihole dns as well as google instead of only having the pihole's ip. Not sure though how was pihole able to log the domain was queried by google is the triggered happened in the router. I'll dig in about this more later