The original post: /r/selfhosted by /u/xicor2205 on 2024-12-22 10:17:15.
I need help with setting up my nginx proxy manager to access my RPI4 from outside the local network. After watching so many tutorials and reading through articles, I got more confused about hwo to go with this setup so I’m turning to reddit as my final hope. So far i have already done these things:
-
Setup my domain namesserver provided by cloudflare
-
Used this docker image to setup ddns with ipv6 in DNS only because of the CGNAT
-
I’m running Nginx proxy manager on docker with the default ports and some other services with different port mapping.
-
Made SSL origin certs and added them to my Nginx instance.
-
Setup router firewall to allow incoming and outgoing packets as default and didn’t mess arround with port forwarding.
-
My ISP supports IPV6 and i have tested this by ssh’ing into the PI using the IPV6 address.
Now the issue is that after setting all this up when i try to access my HA instance through my subdomain I get an 403 error, I understand this might be becuase of the certs most probably but even if I set access list to public then I get a 502 gateway. But if the just enter my domain with the port number then it works without any issue.
So how can i use subdomains to access my services instead of using the port number with the domain using HTTPS? And as for using the localhost with port number, can I use custom local address like ha.local to access the HA instance with nginx proxy manager or should i use adgaurd home custom DNS rules for this, what do you guys suggest?
One more thing i want to ask, can i also use all this with cloudflare tunnel to access services like adguard as dns server on my phone and other devices or access my HA instance outside of my local network? Can this cause any conflict?
This sub has been very helpful for someone like me who didnt have much experiences with networking or hosting services, Thanks a lot 😊.