Skip to content

Commit 0628a65

Browse files
Allow additional gunicorn flags. (#60)
1 parent 7a29df7 commit 0628a65

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ The service supports the following environment variables for configuration:
9191

9292
Defines log verbosity level. Values allowed: `DEBUG`,`INFO`,`WARNING`,`ERROR`,`CRITICAL`.
9393

94+
- `TON_API_GUNICORN_FLAGS` *(default: empty)*
95+
96+
Additional Gunicorn [command line arguments](https://docs.gunicorn.org/en/stable/settings.html).
97+
9498
#### Tonlib settings
9599
- `TON_API_TONLIB_LITESERVER_CONFIG` *(default docker: private/mainnet.json local: https://ton.org/global-config.json)*
96100

docker-compose.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ services:
2727
- internal
2828
secrets:
2929
- liteserver_config
30-
command: -c "gunicorn -k uvicorn.workers.UvicornWorker -w ${TON_API_WEBSERVERS_WORKERS} --bind 0.0.0.0:8081 pyTON.main:app"
30+
command: -c "gunicorn -k uvicorn.workers.UvicornWorker -w ${TON_API_WEBSERVERS_WORKERS} --bind 0.0.0.0:8081 ${TON_API_GUNICORN_FLAGS} pyTON.main:app"
3131
healthcheck:
3232
test: curl -sS http://127.0.0.1:8081${TON_API_ROOT_PATH}/healthcheck || echo 1
3333
interval: 15s

0 commit comments

Comments
 (0)