[N00b mess] Can't access from outside #2415
-
Hello! I'm pretty new to networking on docker so please forgive me if I made obvious errors. I configured haugene/docker-transmision-openvpn in order to access transmission with nordvpn on my local_network (which is between 192.168.1.1 and 192.168.1.255). Here's my stack: version: '3.3' (I copied from all i could find regarding this, so it's the last version ;-)) When I tried to access from my girlfriend's home, I couldn't. So i created a container "transmission-openvpn-proxy" that keeps crashingdocker run -d --link transmission-openvpn-transmission-openvpn-1:transmission -p 8080:8080 --name transmission-openvpn-proxy haugene/transmission-openvpn-proxy
My /etc/nginx/sites-enabled/transmission :
} Last two files were created (copied from the net) at 3AM in an intense desperate mood so please don't hit me And finally the container exiting
Thank you for reading and good luck! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The answer was in /etc/nginx/sites-enabled/ proxy_pass http://local-ip:9091; |
Beta Was this translation helpful? Give feedback.
The answer was in /etc/nginx/sites-enabled/
I added to my nginx configuration file
`location /transmission {
proxy_pass http://local-ip:9091;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header X-NginX-Proxy true;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_pass_header X-Transmission-Session-Id;
}
`
Thank you