mirror of
https://github.com/PaiGramTeam/telegram-bot-api-build.git
synced 2024-11-21 22:48:07 +00:00
add TELEGRAM_HTTP_IP_ADDRESS
This commit is contained in:
parent
171f042580
commit
2899471a0f
@ -57,6 +57,9 @@ HTTP proxy server for outgoing webhook requests in the format http://host:port
|
|||||||
|
|
||||||
allow the Bot API server to serve local requests
|
allow the Bot API server to serve local requests
|
||||||
|
|
||||||
|
### `TELEGRAM_HTTP_IP_ADDRESS`
|
||||||
|
|
||||||
|
Use the `TELEGRAM_HTTP_IP_ADDRESS: "[::]"` parameter to listen on the ipv6 intranet
|
||||||
|
|
||||||
## Start with persistent storage
|
## Start with persistent storage
|
||||||
|
|
||||||
|
@ -37,6 +37,9 @@ fi
|
|||||||
if [ -n "$TELEGRAM_LOCAL" ]; then
|
if [ -n "$TELEGRAM_LOCAL" ]; then
|
||||||
CUSTOM_ARGS="${CUSTOM_ARGS} --local"
|
CUSTOM_ARGS="${CUSTOM_ARGS} --local"
|
||||||
fi
|
fi
|
||||||
|
if [ -n "$TELEGRAM_HTTP_IP_ADDRESS" ]; then
|
||||||
|
CUSTOM_ARGS="${CUSTOM_ARGS} --http-ip-address=$TELEGRAM_HTTP_IP_ADDRESS"
|
||||||
|
fi
|
||||||
|
|
||||||
COMMAND="telegram-bot-api ${DEFAULT_ARGS}${CUSTOM_ARGS}"
|
COMMAND="telegram-bot-api ${DEFAULT_ARGS}${CUSTOM_ARGS}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user