From 775c17ca20214b06694bab7ee261c6f604785c41 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 11 Dec 2024 02:05:37 +0100 Subject: [PATCH] fix email callback --- .../src/routes/auth/callback/email/[code]/+page.server.ts | 2 +- docker/Caddyfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Foxnouns.Frontend/src/routes/auth/callback/email/[code]/+page.server.ts b/Foxnouns.Frontend/src/routes/auth/callback/email/[code]/+page.server.ts index 76829a6..f91a7f3 100644 --- a/Foxnouns.Frontend/src/routes/auth/callback/email/[code]/+page.server.ts +++ b/Foxnouns.Frontend/src/routes/auth/callback/email/[code]/+page.server.ts @@ -9,7 +9,7 @@ import { redirect, isRedirect } from "@sveltejs/kit"; export const load = createCallbackLoader("email", async ({ params }) => { log.info("params:", params, "code:", params.code); - return { state: params.code! }; + return { code: params.code! }; }); export const actions = { diff --git a/docker/Caddyfile b/docker/Caddyfile index 9132068..a729fa8 100644 --- a/docker/Caddyfile +++ b/docker/Caddyfile @@ -1,11 +1,11 @@ # Frontend and API -http://localhost:80 { +http://:80 { reverse_proxy /api/* http://rate:5003 reverse_proxy http://frontend:3000 } # prns.cc (profile URL shortener) -http://localhost:81 { +http://:81 { rewrite * /sid{uri} reverse_proxy http://backend:5000 }