From dc25365e85a824cf086ff52a3a16e0d90aa33838 Mon Sep 17 00:00:00 2001 From: Neo <151435968+nrvo@users.noreply.github.com> Date: Sun, 4 Feb 2024 13:43:17 +0100 Subject: [PATCH] [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 --- apps/nocodb/config.json | 7 +++++++ apps/nocodb/docker-compose.yml | 1 + 2 files changed, 8 insertions(+) diff --git a/apps/nocodb/config.json b/apps/nocodb/config.json index 63dc6fa0..1bfb360e 100644 --- a/apps/nocodb/config.json +++ b/apps/nocodb/config.json @@ -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": [ diff --git a/apps/nocodb/docker-compose.yml b/apps/nocodb/docker-compose.yml index ce2ae89f..662d177d 100644 --- a/apps/nocodb/docker-compose.yml +++ b/apps/nocodb/docker-compose.yml @@ -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"