diff --git a/web/.woodpecker.yml b/web/.woodpecker.yml index 52dcb6e..1fd98ba 100644 --- a/web/.woodpecker.yml +++ b/web/.woodpecker.yml @@ -29,6 +29,7 @@ steps: from_secret: registry_password build_args: - PUBLIC_API_BASE_URL=https://api.marktvogt.de + - PUBLIC_TURNSTILE_SITE_KEY=0x4AAAAAAACjLCV-78Q1loTPz when: - event: push branch: main diff --git a/web/Dockerfile b/web/Dockerfile index 0d19ec2..4e3b3be 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -20,6 +20,9 @@ COPY . . ARG PUBLIC_API_BASE_URL=https://api.marktvogt.de ENV PUBLIC_API_BASE_URL=$PUBLIC_API_BASE_URL +ARG PUBLIC_TURNSTILE_SITE_KEY=1x00000000000000000000AA +ENV PUBLIC_TURNSTILE_SITE_KEY=$PUBLIC_TURNSTILE_SITE_KEY + RUN bun run build # ───────────────────────────────────────────── diff --git a/web/src/lib/auth/cookies.ts b/web/src/lib/auth/cookies.ts index 3dd4aeb..ade877c 100644 --- a/web/src/lib/auth/cookies.ts +++ b/web/src/lib/auth/cookies.ts @@ -1,10 +1,11 @@ +import { dev } from '$app/environment'; import type { Cookies } from '@sveltejs/kit'; import type { AuthData } from '$lib/api/types.js'; const COOKIE_OPTS = { path: '/', httpOnly: true, - secure: false, // TODO: set to true in production + secure: !dev, sameSite: 'lax' as const }; diff --git a/web/src/lib/components/layout/Footer.svelte b/web/src/lib/components/layout/Footer.svelte index 8fedf15..ba685ed 100644 --- a/web/src/lib/components/layout/Footer.svelte +++ b/web/src/lib/components/layout/Footer.svelte @@ -1,13 +1,20 @@ + + diff --git a/web/src/lib/components/layout/Header.svelte b/web/src/lib/components/layout/Header.svelte index 2b2acc8..a0d4886 100644 --- a/web/src/lib/components/layout/Header.svelte +++ b/web/src/lib/components/layout/Header.svelte @@ -1,7 +1,6 @@