|
@@ -43,6 +43,14 @@ export const envSchema = z.object({
|
|
|
if (typeof value === 'boolean') return value;
|
|
|
return value === 'true';
|
|
|
}),
|
|
|
+ guestDashboard: z
|
|
|
+ .string()
|
|
|
+ .or(z.boolean())
|
|
|
+ .optional()
|
|
|
+ .transform((value) => {
|
|
|
+ if (typeof value === 'boolean') return value;
|
|
|
+ return value === 'true';
|
|
|
+ }),
|
|
|
seePreReleaseVersions: z
|
|
|
.string()
|
|
|
.or(z.boolean())
|
|
@@ -55,5 +63,5 @@ export const envSchema = z.object({
|
|
|
|
|
|
export const settingsSchema = envSchema
|
|
|
.partial()
|
|
|
- .pick({ dnsIp: true, internalIp: true, appsRepoUrl: true, domain: true, storagePath: true, localDomain: true, demoMode: true })
|
|
|
+ .pick({ dnsIp: true, internalIp: true, appsRepoUrl: true, domain: true, storagePath: true, localDomain: true, demoMode: true, guestDashboard: true })
|
|
|
.and(z.object({ port: z.number(), sslPort: z.number(), listenIp: z.string().ip().trim() }).partial());
|