fix: IAM warning, nginx doc, fail-fast IAM_API_URL + bump 0.5.20

- src/routes/oidc.js: console.error при IAM fallback вместо warn
- server.js: проверка IAM_API_URL в production mode
- docs/devops-deploy.md: X-Forwarded-Proto в nginx config
This commit is contained in:
2026-06-04 15:33:32 +03:00
parent 7b66b94774
commit 99796202cb
5 changed files with 67 additions and 2 deletions
+4
View File
@@ -70,6 +70,10 @@ async function start() {
console.error('FATAL: SESSION_SECRET не задан или равен дефолту в production!');
process.exit(1);
}
if (!process.env.IAM_API_URL) {
console.error('FATAL: IAM_API_URL не задан в production!');
process.exit(1);
}
}
// k8s liveness probe — простая проверка что сервер жив