Require NOCODB_BASE_ID: drop the baked-in fallback, fail with a clear message
- monitor.py: no default base id any more, and main() now reports whichever of NOCODB_TOKEN / NOCODB_BASE_ID is missing (writing the same text to /data/health.json) instead of dying inside bootstrap with a traceback - docker-compose.yml: NOCODB_BASE_ID is a required variable now (production passes it in .env, so runtime behaviour is unchanged there) - README: the contributing note matches reality again Verified: python test_pagination.py passes, python -m py_compile clean, and a run without the two variables prints "NOCODB_TOKEN, NOCODB_BASE_ID not set", writes ok:false to health.json and exits 2.
This commit is contained in:
@@ -415,7 +415,7 @@ Issues and pull requests are welcome. Two house rules before you send a patch:
|
||||
1. **Open an issue first for anything beyond a typo** — this is a small, opinionated tool and the maintainer would rather agree on the shape before you write it.
|
||||
2. **Do not break the tests.** `python test_pagination.py` must pass, and new behaviour wants a check added to it.
|
||||
|
||||
Please never commit credentials, host names or personal URLs. The repo intentionally ships no default base id, token or chat id.
|
||||
Please never commit credentials, host names or personal URLs. The repo ships no base id, token or chat id — `NOCODB_BASE_ID` and `NOCODB_TOKEN` are required settings and the monitor refuses to start (with a clear message) until they are set.
|
||||
|
||||
## Credits
|
||||
|
||||
|
||||
Reference in New Issue
Block a user