docker-toran-proxy icon indicating copy to clipboard operation
docker-toran-proxy copied to clipboard

toran is not responding by HTTP if TORAN_HOST and TORAN_HTTP_PORT are provided

Open re3lex opened this issue 6 years ago • 2 comments

Hi,

first of all thank you for docker image you built. it is very helpful.

I run into problem: if TORAN_HOST and TORAN_HTTP_PORT are provided toran is not responding by HTTP (http://192.168.1.123:8080) but if I remove both settings it is working though packages.json contains references to localhost instead of my server.

There are no errors in logs.

Here is config I'm using:

sudo docker run --name toran-proxy \
-p 8080:80 \
-e "TORAN_HOST=192.168.1.123" \
-e "TORAN_HTTP_PORT=8080" \
-v /volume1/toran-proxy:/data/toran-proxy \
cedvan/toran-proxy:1.5.4

Any idea how to fix that?

PS: My server is based on Ubuntu 18.04

re3lex avatar Jun 11 '18 20:06 re3lex

Update: I did some investigation.

toran is not responding only if TORAN_HTTP_PORT=8080 is provided in options though with other options it is working fine:

sudo docker run --name toran-proxy  \
-p 8080:80 \
-e "TORAN_HTTP_PORT=8080" \
-v /opt/toran-proxy:/data/toran-proxy \
cedvan/toran-proxy:1.5.4

re3lex avatar Jun 11 '18 21:06 re3lex

Update #2: FOund working workaround by defining port as part of TORAN_HOST:

sudo docker run --name toran-proxy \
-p 8080:80 \
-e "TORAN_HOST=192.168.1.123:8080" \
-v /volume1/toran-proxy:/data/toran-proxy \
cedvan/toran-proxy:1.5.4

re3lex avatar Jun 11 '18 21:06 re3lex