u/Kior__

How do I properly configure Pterodactyl behind Nginx Proxy Manager?

Hi,
I'm trying to configure Pterodactyl (Panel and Wings) behind a reverse proxy (NPM).
I have a dedicated VM for Pterodactyl, running Debian. I have my own domain name and subdomains hosted with Cloudflare.

I can configure the Pterodactyl panel by disabling SSL (only on my local network) and I route the traffic through NPM by re-enabling SSL. Of course, I need to configure a custom configuration in NPM to avoid privacy error screens.
(like proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
proxy_buffering off;
proxy_request_buffering off;)

My question is how to properly configure a Node?
SSL or HTTP?
Should I use a reverse proxy or not?
Should I use my domain name or my local IP address?
Should I use the Cloudflare proxy (orange cloud icon in the DNS records) or not?
Should I open ports 8080 and 2022 on my router or not?

Even if your answer is incomplete, thank you in advance for your help.

reddit.com
u/Kior__ — 10 days ago