added stat host env

it would be better to set host because of docker networking its hard to request to localhost
This commit is contained in:
SMAZNet 2021-07-19 02:26:47 +04:30 committed by GitHub
parent 724b814fb2
commit cf5e66213a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -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