mirror of
https://github.com/PaiGramTeam/telegram-bot-api-build.git
synced 2024-11-21 22:48:07 +00:00
docs: add TELEGRAM_HTTP_PORT
env description to readme
This commit is contained in:
parent
e19317eb44
commit
bf59a48392
@ -27,12 +27,10 @@ Enable statistics HTTP endpoint.
|
|||||||
|
|
||||||
Usage: `-e TELEGRAM_STAT=1 -p 8082:8082` and then check that `curl http://<host>:8082` returns server statistic
|
Usage: `-e TELEGRAM_STAT=1 -p 8082:8082` and then check that `curl http://<host>:8082` returns server statistic
|
||||||
|
|
||||||
|
|
||||||
### `TELEGRAM_FILTER`
|
### `TELEGRAM_FILTER`
|
||||||
|
|
||||||
"<remainder>/<modulo>". Allow only bots with 'bot_user_id % modulo == remainder'
|
"<remainder>/<modulo>". Allow only bots with 'bot_user_id % modulo == remainder'
|
||||||
|
|
||||||
|
|
||||||
### `TELEGRAM_MAX_WEBHOOK_CONNECTIONS`
|
### `TELEGRAM_MAX_WEBHOOK_CONNECTIONS`
|
||||||
|
|
||||||
default value of the maximum webhook connections per bot
|
default value of the maximum webhook connections per bot
|
||||||
@ -61,6 +59,12 @@ allow the Bot API server to serve local requests
|
|||||||
|
|
||||||
Use the `TELEGRAM_HTTP_IP_ADDRESS: "[::]"` parameter to listen on the ipv6 intranet
|
Use the `TELEGRAM_HTTP_IP_ADDRESS: "[::]"` parameter to listen on the ipv6 intranet
|
||||||
|
|
||||||
|
### `TELEGRAM_HTTP_PORT`
|
||||||
|
|
||||||
|
Set which port the api server should listen to if you want to run the image in network mode as host and want to change the port.
|
||||||
|
|
||||||
|
If not set then the api server will listen to port 8081.
|
||||||
|
|
||||||
## Start with persistent storage
|
## Start with persistent storage
|
||||||
|
|
||||||
Server working directory is `/var/lib/telegram-bot-api` so if you want to persist the server data you can mount this folder as volume:
|
Server working directory is `/var/lib/telegram-bot-api` so if you want to persist the server data you can mount this folder as volume:
|
||||||
|
Loading…
Reference in New Issue
Block a user