From cf5e66213a7e6e904175cbb9b5a1cc94377b25b2 Mon Sep 17 00:00:00 2001 From: SMAZNet Date: Mon, 19 Jul 2021 02:26:47 +0430 Subject: [PATCH 1/3] added stat host env it would be better to set host because of docker networking its hard to request to localhost --- docker-entrypoint.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index b60ea98..27c201d 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -17,8 +17,13 @@ DEFAULT_ARGS="--http-port 8081 --dir=${TELEGRAM_WORK_DIR} --temp-dir=${TELEGRAM_ CUSTOM_ARGS="" if [ -n "$TELEGRAM_STAT" ]; then - CUSTOM_ARGS="${CUSTOM_ARGS} --http-stat-port=8082" + CUSTOM_ARGS="${CUSTOM_ARGS} --http-stat-port=$TELEGRAM_STAT" fi + +if [ -n "$TELEGRAM_STAT_HOST" ]; then + CUSTOM_ARGS="${CUSTOM_ARGS} --http-stat-host=$TELEGRAM_STAT_HOST" +fi + if [ -n "$TELEGRAM_STAT_HIDE_SENSIBLE_DATA" ]; then CUSTOM_ARGS="${CUSTOM_ARGS} --stats-hide-sensible-data" fi From 1cb53b2d55f34b92dd9b4d630076c81f7b14dcd2 Mon Sep 17 00:00:00 2001 From: SMAZNet Date: Mon, 19 Jul 2021 02:29:15 +0430 Subject: [PATCH 2/3] Update docker-entrypoint.sh --- docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 27c201d..e29e98d 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -21,7 +21,7 @@ if [ -n "$TELEGRAM_STAT" ]; then fi if [ -n "$TELEGRAM_STAT_HOST" ]; then - CUSTOM_ARGS="${CUSTOM_ARGS} --http-stat-host=$TELEGRAM_STAT_HOST" + CUSTOM_ARGS="${CUSTOM_ARGS} --http-stat-ip-address=$TELEGRAM_STAT_HOST" fi if [ -n "$TELEGRAM_STAT_HIDE_SENSIBLE_DATA" ]; then From 2dfc3f3ee5a59c6a3313179a82e220cc10553613 Mon Sep 17 00:00:00 2001 From: SMAZNet Date: Sun, 15 Aug 2021 00:31:56 +0430 Subject: [PATCH 3/3] Update docker-entrypoint.sh --- docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index e29e98d..ce3fafa 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -17,7 +17,7 @@ DEFAULT_ARGS="--http-port 8081 --dir=${TELEGRAM_WORK_DIR} --temp-dir=${TELEGRAM_ CUSTOM_ARGS="" if [ -n "$TELEGRAM_STAT" ]; then - CUSTOM_ARGS="${CUSTOM_ARGS} --http-stat-port=$TELEGRAM_STAT" + CUSTOM_ARGS="${CUSTOM_ARGS} --http-stat-port=8082" fi if [ -n "$TELEGRAM_STAT_HOST" ]; then