mirror of
https://github.com/nfonteyne/octane-website.git
synced 2026-09-03 23:24:48 +02:00
update: create production env
This commit is contained in:
parent
d8d4a45483
commit
c3380179ce
6 changed files with 135 additions and 15 deletions
|
|
@ -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, () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue