unholyeyebrows
Explorer
- Joined
- Apr 19, 2012
- Messages
- 55
Hi All
I have the following set-up:
TrueNAS Scale: host IP: 192.168.68.248
A number of apps running i.e.
NextCloud
Jellyfin
I also have running, as an app, Nginx Proxy Manager to act as a reverse proxy.
For the proxy set-up, I have DuckDNS & Let's Encrypt configured and can successfully access the Nextcloud and Jelyfin servers from the internet using the following Nginx settings:
Jellyfin:
Details:
Domain name: jellyfin.aaa.duckdns.org
Scheme: http
Forward IP: 192.168.68.248
Forward port: 8096
Block common exploits: enabled
Access list: Publicly Accessible
SSL:
SSL Cert: *.aaa.bbb.org
Force SSL: enabled
HTTP/2: enabled
HSTS enabled: enabled
This config, plus equivalent for Nextcloud works perfectly.
Now, I also have Home Assistant running in a VM on the same TrueNAS Scale host at 192.168.68.102:8123 and so have set-up Nginx as follows:
Homeassistant:
Details:
Domain name: homeassistant.aaa.duckdns.org
Scheme: http
Forward IP: 192.168.68.102
Forward port: 8123
Block common exploits: enabled
Websockets Support: enabled
Access list: Publicly Accessible
SSL:
SSL Cert: *.aaa.duckdns.org
Force SSL: enabled
HTTP/2: enabled
HSTS enabled: enabled
However, this does not proxy correctly, and I receive a 502 Bad Gateway error.
I'm assuming the fact the Nginx docker container is not being able to forward to the VM relates to restrictions in the Docker networking, but I cannot work out how to solve this. I have tried editing the Apps -> Advance Settings and have added the following but this then results in a 504 timeout error:
Route v4 Interface: enp1s0
Route v4 Gateway: 192.168.68.1
I'm guessing this is a common scenario - proxying VMs or indeed other physical servers on the LAN using Nginx in a container. Any help would be very gratefully received!
Thanks
I have the following set-up:
TrueNAS Scale: host IP: 192.168.68.248
A number of apps running i.e.
NextCloud
Jellyfin
I also have running, as an app, Nginx Proxy Manager to act as a reverse proxy.
For the proxy set-up, I have DuckDNS & Let's Encrypt configured and can successfully access the Nextcloud and Jelyfin servers from the internet using the following Nginx settings:
Jellyfin:
Details:
Domain name: jellyfin.aaa.duckdns.org
Scheme: http
Forward IP: 192.168.68.248
Forward port: 8096
Block common exploits: enabled
Access list: Publicly Accessible
SSL:
SSL Cert: *.aaa.bbb.org
Force SSL: enabled
HTTP/2: enabled
HSTS enabled: enabled
This config, plus equivalent for Nextcloud works perfectly.
Now, I also have Home Assistant running in a VM on the same TrueNAS Scale host at 192.168.68.102:8123 and so have set-up Nginx as follows:
Homeassistant:
Details:
Domain name: homeassistant.aaa.duckdns.org
Scheme: http
Forward IP: 192.168.68.102
Forward port: 8123
Block common exploits: enabled
Websockets Support: enabled
Access list: Publicly Accessible
SSL:
SSL Cert: *.aaa.duckdns.org
Force SSL: enabled
HTTP/2: enabled
HSTS enabled: enabled
However, this does not proxy correctly, and I receive a 502 Bad Gateway error.
I'm assuming the fact the Nginx docker container is not being able to forward to the VM relates to restrictions in the Docker networking, but I cannot work out how to solve this. I have tried editing the Apps -> Advance Settings and have added the following but this then results in a 504 timeout error:
Route v4 Interface: enp1s0
Route v4 Gateway: 192.168.68.1
I'm guessing this is a common scenario - proxying VMs or indeed other physical servers on the LAN using Nginx in a container. Any help would be very gratefully received!
Thanks
Last edited: