From 12fa3a9fe536b8a92ed5566d910a5bafb8726772 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Sun, 17 Mar 2024 05:37:16 +0100 Subject: [PATCH] Trusting proxy in production. --- src/web/server.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/web/server.js b/src/web/server.js index 2356720..cd6af8d 100644 --- a/src/web/server.js +++ b/src/web/server.js @@ -83,6 +83,8 @@ export default async function initServer() { // Vite integration if (isProduction) { + app.enable('trust proxy'); + // In production, we need to serve our static assets ourselves. // (In dev, Vite's middleware serves our static assets.) const sirv = (await import('sirv')).default;