Fix: Use JSON config files for ESM compatibility

- Replace @simpleworkjs/conf with simple custom loader
- Use JSON config files (base, development, production, secrets)
- Add config.js with ESM-compatible deep merge
- Support env var overrides for critical settings
- Auth disabled in dev mode via development.json
This commit is contained in:
2026-02-25 03:24:27 +00:00
parent 748636591b
commit 0aa7751356
13 changed files with 153 additions and 123 deletions

14
conf/secrets.example.json Normal file
View File

@@ -0,0 +1,14 @@
{
"gateway": {
"token": "your-gateway-token-here"
},
"session": {
"secret": "generate-a-random-string-here"
},
"auth": {
"ldap": {
"bindDN": "cn=admin,dc=example,dc=com",
"bindPassword": "ldap-admin-password"
}
}
}