@@ -240,57 +240,19 @@ services:
240240 - database
241241 environment :
242242 TZ : Asia/Shanghai
243- # one of two
244- OPENAI_API_KEY : xxxxxx
245- # one of two
246- OPENAI_ACCESS_TOKEN : xxxxxx
247- # api interface url, optional, available when OPENAI_API_KEY is set
248- OPENAI_API_BASE_URL : xxxx
249- # ChatGPTAPI 或者 ChatGPTUnofficialProxyAPI
250- OPENAI_API_MODEL : xxxx
251- # reverse proxy, optional
252- API_REVERSE_PROXY : xxx
253- # timeout, in milliseconds, optional
254- TIMEOUT_MS : 600000
255- # socks proxy, optional, effective with SOCKS_PROXY_PORT
256- SOCKS_PROXY_HOST : xxxx
257- # socks proxy port, optional, effective with SOCKS_PROXY_HOST
258- SOCKS_PROXY_PORT : xxxx
259- # socks proxy, optional, effective with SOCKS_PROXY_HOST and SOCKS_PROXY_PORT
260- SOCKS_PROXY_USERNAME : xxxx
261- # socks proxy port, optional, effective with SOCKS_PROXY_HOST and SOCKS_PROXY_PORT
262- SOCKS_PROXY_PASSWORD : xxxx
263- # HTTPS Proxy,optional, support http, https, socks5
264- HTTPS_PROXY : http://xxx:7890
265243 # Title for site
266244 SITE_TITLE : ChatGpt Web
267245 # access salt,optional Allow login if not empty.
268246 AUTH_SECRET_KEY : xxx
269247 # mongodb's connection string
270248 MONGODB_URL : ' mongodb://chatgpt:xxxx@database:27017'
271- # Register enabled
272- REGISTER_ENABLED : true
273- # After register enabled, Allowed mailbox suffixes for website registration. If empty, any suffix is allowed
274- REGISTER_MAILS : ' @qq.com,@sina.com,@163.com'
275249 # After register enabled, Salt for password encryption
276250 PASSWORD_MD5_SALT : xxx
277251 # After register enabled, super administrator
278252 ROOT_USER : me@example.com
279- # After register enabled, The website's domain ending without /
280- SITE_DOMAIN : http://127.0.0.1:3002
281- # After register enabled, The smtp settings
282- SMTP_HOST : smtp.exmail.qq.com
283- SMTP_PORT : 465
284- SMTP_TSL : true
285- SMTP_USERNAME : noreply@examile.com
286- SMTP_PASSWORD : xxx
287- # Enable sensitive word review, because the response result is streaming, so there is currently no review.
288- AUDIT_ENABLED : false
289- # https://ai.baidu.com/ai-doc/ANTIPORN/Vk3h6xaga
290- AUDIT_PROVIDER : baidu
291- AUDIT_API_KEY : xxx
292- AUDIT_API_SECRET : xxx
293- AUDIT_TEXT_LABEL : xxx
253+ # Allow anyone register, Must be turned on, otherwise administrators cannot register, can be turned off later.
254+ REGISTER_ENABLED : true
255+ # More configurations, register an administrator after running and set it in the administrator page.
294256 links :
295257 - database
296258
@@ -318,23 +280,7 @@ The `OPENAI_API_BASE_URL` is optional and only used when setting the `OPENAI_API
318280
319281[](https://railway.app/new/template/yytmgc)
320282
321- # ### Railway Environment Variables
322-
323- | Environment Variable | Required | Description |
324- |------------------------|-------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------|
325- | `PORT` | Required | Default : ` 3002` |
326- | `AUTH_SECRET_KEY` | Optional | access password |
327- | `TIMEOUT_MS` | Optional | Timeout in milliseconds |
328- | `OPENAI_API_KEY` | Optional | Required for `OpenAI API`. `apiKey` can be obtained from [here](https://platform.openai.com/overview). |
329- | `OPENAI_ACCESS_TOKEN` | Optional | Required for `Web API`. `accessToken` can be obtained from [here](https://chat.openai.com/api/auth/session). |
330- | `OPENAI_API_BASE_URL` | Optional, only for `OpenAI API` | API endpoint. |
331- | `OPENAI_API_MODEL` | `ChatGPTAPI` OR `ChatGPTUnofficialProxyAPI` | API model. |
332- | `API_REVERSE_PROXY` | Optional, only for `Web API` | Reverse proxy address for `Web API`. [Details](https://github.com/transitive-bullshit/chatgpt-api#reverse-proxy) |
333- | `SOCKS_PROXY_HOST` | Optional, effective with `SOCKS_PROXY_PORT` | Socks proxy. |
334- | `SOCKS_PROXY_PORT` | Optional, effective with `SOCKS_PROXY_HOST` | Socks proxy port. |
335- | `SOCKS_PROXY_USERNAME` | Optional, effective with `SOCKS_PROXY_HOST` & `SOCKS_PROXY_PORT` | Socks proxy username. |
336- | `SOCKS_PROXY_PASSWORD` | Optional, effective with `SOCKS_PROXY_HOST` & `SOCKS_PROXY_PORT` | Socks proxy password. |
337- | `HTTPS_PROXY` | Optional | HTTPS Proxy. |
283+ > Refer to this issue https://github.com/Kerwin1202/chatgpt-web/issues/266
338284
339285> Note: Changing environment variables in Railway will cause re-deployment.
340286
0 commit comments