synops.no = offentlig, workspace.synops.no = app
Klar separasjon: - synops.no: statisk landingsside + publisert innhold (/pub/*) - workspace.synops.no: SvelteKit-app (arbeidsflate, chat, alt) - Alle login-lenker peker til workspace.synops.no - Cookie-domene tilbake til default (ikke .synops.no) - Caddy: to separate site-blokker Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ed632f686d
commit
32c3dfc1b0
2 changed files with 3 additions and 17 deletions
|
|
@ -56,20 +56,6 @@ async function syncUsername(accessToken: string, username: string): Promise<void
|
|||
|
||||
export const { handle, signIn, signOut } = SvelteKitAuth({
|
||||
trustHost: true,
|
||||
cookies: {
|
||||
sessionToken: {
|
||||
name: '__Secure-authjs.session-token',
|
||||
options: { domain: '.synops.no', path: '/', sameSite: 'lax', secure: true, httpOnly: true },
|
||||
},
|
||||
callbackUrl: {
|
||||
name: '__Secure-authjs.callback-url',
|
||||
options: { domain: '.synops.no', path: '/', sameSite: 'lax', secure: true, httpOnly: true },
|
||||
},
|
||||
csrfToken: {
|
||||
name: '__Host-authjs.csrf-token',
|
||||
options: { path: '/', sameSite: 'lax', secure: true, httpOnly: true },
|
||||
},
|
||||
},
|
||||
providers: [
|
||||
{
|
||||
id: 'authentik',
|
||||
|
|
|
|||
|
|
@ -2,13 +2,13 @@
|
|||
<div class="container">
|
||||
<header>
|
||||
<div class="logo">synops<span>.</span></div>
|
||||
<a href="/auth/signin" class="login-btn">Logg inn</a>
|
||||
<a href="https://workspace.synops.no" class="login-btn">Logg inn</a>
|
||||
</header>
|
||||
|
||||
<section class="hero">
|
||||
<h1>Stappfull av <em>features</em><br>(hvorav et fåtall virker som forutsatt)</h1>
|
||||
<p class="tagline">En useriøs plattform for kommunikasjon, redaksjonelt arbeid, podcastproduksjon og egentlig alt du vil. Bygget med uvitenhet, overmot og en urimelig mengde AI-assistanse.</p>
|
||||
<a href="/auth/signin" class="hero-cta">Kom i gang →</a>
|
||||
<a href="https://workspace.synops.no" class="hero-cta">Kom i gang →</a>
|
||||
</section>
|
||||
|
||||
<div class="divider"></div>
|
||||
|
|
@ -44,7 +44,7 @@
|
|||
<section class="expect">
|
||||
<h2>Hva kan du forvente?</h2>
|
||||
<p>Som bruker av Synops kan du forvente en dønn ustabil plattform som er i stadig endring, men som du likevel tenker at det er en grunn til å være på. Nye features dukker opp uten forvarsel. Gamle features forsvinner uten forvarsel. Og en og annen gang fungerer alt samtidig — og da er det ganske magisk.</p>
|
||||
<div class="cta-row"><a href="/auth/signin" class="hero-cta">Jeg er overbevist →</a></div>
|
||||
<div class="cta-row"><a href="https://workspace.synops.no" class="hero-cta">Jeg er overbevist →</a></div>
|
||||
</section>
|
||||
|
||||
<footer><p>synops.no — et hobbyprosjekt med ambisjoner over evne</p></footer>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue