[App] add DB_QUERY_LIMIT_DEFAULT env to NocoDB (#2392)

* add env for NOCODB_TABLE_ROWS

* fix(envs): set default rows value to 25

---------

Co-authored-by: JigSawFr <JigSawFr@users.noreply.github.com>
This commit is contained in:
Neo 2024-02-04 13:43:17 +01:00 committed by GitHub
parent c407343e46
commit dc25365e85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -32,6 +32,13 @@
"label": "REDIS_PASSWORD",
"min": 32,
"env_variable": "NOCODB_REDIS_PASSWORD"
},
{
"type": "number",
"label": "Choos the number of rows to display in a table.",
"hint": "Leave empty for default 25",
"required": false,
"env_variable": "NOCODB_TABLE_ROWS"
}
],
"supported_architectures": [

View File

@ -11,6 +11,7 @@ services:
- NC_PUBLIC_URL=${APP_PROTOCOL:-http}://${APP_DOMAIN}
- NC_AUTH_JWT_SECRET=${NOCODB_JWT_SECRET}
- NC_REDIS_URL=redis://default:${NOCODB_REDIS_PASSWORD}@nocodb-redis:6379
- DB_QUERY_LIMIT_DEFAULT=${NOCODB_TABLE_ROWS-25}
image: "nocodb/nocodb:0.204.0"
ports:
- "${APP_PORT}:8080"