From e9f554dc4e99b1ceddc8ad17b542d6fe5a401826 Mon Sep 17 00:00:00 2001 From: Rafi Date: Tue, 11 Apr 2023 17:51:06 +0800 Subject: [PATCH] Add WORKER_TIMEOUT info to readme --- README.md | 1 + docker-compose.yml | 1 + docs/zh/README.md | 1 + 3 files changed, 3 insertions(+) diff --git a/README.md b/README.md index 83b0d86..e792d5c 100644 --- a/README.md +++ b/README.md @@ -118,6 +118,7 @@ services: environment: - APP_DOMAIN=${APP_DOMAIN:-localhost:9000} # CSRF whitelist,Add the address of your chatgpt-ui-web-server here, default is localhost:9000 - SERVER_WORKERS=3 # Number of gunicorn workers, default is 3 + - WORKER_TIMEOUT=180 # Worker timeout, default is 180s #- DB_URL=postgres://postgres:postgrespw@localhost:49153/chatgpt # If this parameter is not set, the built-in Sqlite will be used by default. It should be noted that if you do not connect to an external database, the data will be lost after the container is destroyed. #- OPENAI_API_PROXY=https://openai.proxy.com/v1 # Proxy for https://api.openai.com/v1 - DJANGO_SUPERUSER_USERNAME=admin # default superuser name diff --git a/docker-compose.yml b/docker-compose.yml index 6dc791d..652ce09 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,6 +21,7 @@ services: environment: - APP_DOMAIN=${APP_DOMAIN:-localhost:9000} - SERVER_WORKERS=3 # The number of worker processes for handling requests. + - WORKER_TIMEOUT=180 # Workers silent for more than this many seconds are killed and restarted. default 180s # - DB_URL=postgres://postgres:postgrespw@localhost:49153/chatgpt # If this parameter is not set, the built-in Sqlite will be used by default. It should be noted that if you do not connect to an external database, the data will be lost after the container is destroyed. - DJANGO_SUPERUSER_USERNAME=admin # default superuser name - DJANGO_SUPERUSER_PASSWORD=password # default superuser password diff --git a/docs/zh/README.md b/docs/zh/README.md index da7ddbc..f58b62f 100644 --- a/docs/zh/README.md +++ b/docs/zh/README.md @@ -114,6 +114,7 @@ services: environment: - APP_DOMAIN=${APP_DOMAIN:-localhost:9000} # CSRF 白名单,在这里设置为 chatgpt-ui-web-server 的地址+端口, 默认: localhost:9000 - SERVER_WORKERS=3 # gunicorn 的工作进程数,默认为 3 + - WORKER_TIMEOUT=180 # 请求超时时间,默认为 180 秒 #- DB_URL=postgres://postgres:postgrespw@localhost:49153/chatgpt # 连接外部数据库,如果不设置这个参数,则默认使用内置的 Sqlite。需要注意的是,如果不连接外部数据库,数据将在容器销毁后丢失。链接格式请看下面的 DB_URL 格式对照表 #- OPENAI_API_PROXY=https://openai.proxy.com/v1 # https://api.openai.com/v1 的代理地址 - DJANGO_SUPERUSER_USERNAME=admin # 默认超级用户