adm.synops.no: Caddy + hooks + Authentik redirect URI
Nytt subdomain for admin. Caddy ruter til SvelteKit. Hooks redirecter adm.synops.no/ til /admin. Authentik OIDC redirect URI lagt til. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
19d7fb3980
commit
be7f7ed9ec
1 changed files with 6 additions and 0 deletions
|
|
@ -16,6 +16,12 @@ const authorizationHandle: Handle = async ({ event, resolve }) => {
|
||||||
throw redirect(303, '/auth/signin');
|
throw redirect(303, '/auth/signin');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// adm.synops.no → redirect til admin-arbeidsflaten
|
||||||
|
const host = event.url.hostname;
|
||||||
|
if (host === 'adm.synops.no' && path === '/') {
|
||||||
|
throw redirect(303, '/admin');
|
||||||
|
}
|
||||||
|
|
||||||
return resolve(event);
|
return resolve(event);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue