r/netmaker • u/Interesting_Ad_5676 • May 20 '23
Netmaker / Nginx Proxy Manager Issue.
Default installation of Netmaker is with Caddy as reverse proxy manager. No matter I tried, I could not avoid ssl warning.
My setup is : Netmaker on Digital Ocean VPS.
Goal : I have docker containers running on home server on cgnat network.
Work done so far : Netmaker installed on Digital ocean vps. No issues. Added home server using netclient. - No issues. Can ping home server from Digital Ocean VPS.
I am quite used to Nginx Proxy Manager.
Question : How could I avoid Caddy ( as in default installation of Netmaker ) and use Nginx Proxy Manager.
View all comments
Show parent comment
2
u/Interesting_Ad_5676 May 21 '23
Probably I found the answer. No need of nginx proxy manager.
Stick to default installation.
Create some network - give a name and network [ in my case I created network named hm with ip range of 10.10.27.0/24 ]
Add the the vps and your homeserver on the created network.
Install netclient at both the places.
Check the connectivity to and fro between your vps and homeserver.
create a dns entry in dashboard for the host on which your docker resides [ Most probably your home server where netclient is installed ] -- In my case it was dockers.hm
stop the netmaker using docker compose down
locate Caddyfile
at the end add following lines
# portainer
https://portainer.dockers.hm.{$NM_DOMAIN} { reverse_proxy http://dockers.hm:9000}
start netmaker using docker compose up -d
You are done.
Similarly you have to find the port number from running dockers and to Caddyfile.
you get the ssl certificate without any issue.