Hello everyone,
I have a problem with the use of nginx proxy manager, which I have running via the dockge app extension. I have created a macvlan so that I can give most apps their own IP addresses. So npm has a diffent ip address than the truenas host itself. If an app has its own IP address, e.g. Adguard (also container in dockge), then I can set up a forwarding with certificate via nginx. But on the Truenas GUI or dockge (truenasip:5001) I always get error 502 bad gateway.
I have successfully set up my ssl certifiate and also several redirects to different ip addresses in my network. So I know that the basic settings should actually work. The problem now is that I cannot forward to the host itself (i.e. Truenas Scale) or to other containers running on the Truenas IP under a different port.
I setup the macvlan using a bridge created truenas scale network, containing the physical port. This bridge connected to vm’s with diffent IP’s also working.
Below is my npm compose.yaml
npm:
image: jc21/nginx-proxy-manager:latest
container_name: npm
restart: unless-stopped
ports:
- 80:80
- 81:81
- 443:443
volumes:
- /mnt/software/apps/npm:/data
- /mnt/software/apps/letsencrypt:/etc/letsencrypt
networks:
macvlan:
ipv4_address: 10.10.10.3
networks:
macvlan:
external: true
name: macvlan
Any tipp on how to get this working would be highly appreciated.
Regards,
Steffen