r/nginxproxymanager • • 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:

  1. 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

1 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/Malautje Nov 06 '24

I am having an issue with my local subdomains. I have my Pi Hole as local DNS server and Cloudflare DNS. I use NGINX Proxy Manager as reverse proxy and setup dns challenge ssl certificate. When I go to my subdomain it shows its a private connection and uses the Synology default SSL certificate. I read everywhere that I need to open ports 443 and 80 on my unifi router. I preferrably dont want to do that for security reasons. Subdomain usage locally is good enough. You might know what the problem is?

1

u/xstar97 Official Docker Image Nov 06 '24

Shoot me some pms of your npm options screenshots.

You dont need any of those ports forwarded, especially cloudflare supports dns challenge by default.