Browse Source

fix: Correct environment variable name (#6184)

Co-authored-by: liuzhenghua-jk <liuzhenghua-jk@360shuke.com>
liuzhenghua 9 months ago
parent
commit
079583eaa4
2 changed files with 2 additions and 2 deletions
  1. 1 1
      docker-legacy/docker-compose.yaml
  2. 1 1
      docker/docker-compose.yaml

+ 1 - 1
docker-legacy/docker-compose.yaml

@@ -40,7 +40,7 @@ services:
       # The default value is 300 seconds.
       FILES_ACCESS_TIMEOUT: 300
       # The maximum number of active requests for the application, where 0 means unlimited, should be a non-negative integer.
-      APP_MAX_ACTIVE_REQUESTS: ${FILES_ACCESS_TIMEOUT:-0}
+      APP_MAX_ACTIVE_REQUESTS: 0
       # When enabled, migrations will be executed prior to application startup and the application will start after the migrations have completed.
       MIGRATION_ENABLED: 'true'
       # The configurations of postgres database connection.

+ 1 - 1
docker/docker-compose.yaml

@@ -12,7 +12,7 @@ x-shared-env: &shared-api-worker-env
   OPENAI_API_BASE: ${OPENAI_API_BASE:-https://api.openai.com/v1}
   FILES_URL: ${FILES_URL:-}
   FILES_ACCESS_TIMEOUT: ${FILES_ACCESS_TIMEOUT:-300}
-  APP_MAX_ACTIVE_REQUESTS: ${FILES_ACCESS_TIMEOUT:-0}
+  APP_MAX_ACTIVE_REQUESTS: ${APP_MAX_ACTIVE_REQUESTS:-0}
   MIGRATION_ENABLED: ${MIGRATION_ENABLED:-true}
   DEPLOY_ENV: ${DEPLOY_ENV:-PRODUCTION}
   DIFY_BIND_ADDRESS: ${DIFY_BIND_ADDRESS:-0.0.0.0}