update: create production env

This commit is contained in:
Nathan FONTEYNE 2026-07-08 11:19:35 +02:00
parent d8d4a45483
commit c3380179ce
6 changed files with 135 additions and 15 deletions

View file

@ -5,7 +5,11 @@ const { runMigrations } = require('./db/migrate');
async function main() {
await runMigrations();
await initOidc();
if (config.devBypassAuth) {
console.warn('DEV_BYPASS_AUTH is enabled — Authentik/OIDC is skipped. Do not use this in production.');
} else {
await initOidc();
}
const app = createApp();
app.listen(config.port, () => {