Skip to content

A modern, self-hosted backup solution for secure, encrypted backups across local and cloud storage.

fix: resolves blank screens issue when a docker instance is accessed with non-https url

towfiqia395f2d29e4e
diff --git a/backend/src/createApp.ts b/backend/src/createApp.ts
index 39893fc..479f654 100644
--- a/backend/src/createApp.ts
+++ b/backend/src/createApp.ts
@@ -141,7 +141,7 @@ export async function createApp(): Promise<{ app: Express }> {
resave: false,
saveUninitialized: false,
cookie: {
- secure: configService.config.NODE_ENV === 'production',
+ secure: configService.config.APP_URL?.startsWith('https'),
httpOnly: true,
maxAge: 1000 * 60 * 15, // 15 minutes
},
@@ -187,7 +187,6 @@ export async function createApp(): Promise<{ app: Express }> {
frameAncestors: ["'none'"],
baseUri: ["'self'"],
formAction: ["'self'"],
- upgradeInsecureRequests: isDev ? null : [],
},
},
hsts: false, // Don't force HTTPS — users may run over HTTP on LAN