♻️ validate env and add remote fossorial API as an env variable

This commit is contained in:
Fred KISSIE
2025-11-05 06:54:56 +01:00
parent 03e0e8d9c2
commit a26a441d56
7 changed files with 176 additions and 97 deletions

View File

@@ -4,6 +4,7 @@ export type Env = {
sandbox_mode: boolean;
version: string;
dashboardUrl: string;
fossorialRemoteAPIBaseUrl: string;
};
server: {
externalPort: string;
@@ -29,11 +30,11 @@ export type Env = {
enableClients: boolean;
hideSupporterKey: boolean;
usePangolinDns: boolean;
},
};
branding: {
appName?: string;
background_image_path?: string;
logo?: {
logo: {
lightPath?: string;
darkPath?: string;
authPage?: {
@@ -43,22 +44,22 @@ export type Env = {
navbar?: {
width?: number;
height?: number;
}
},
loginPage?: {
};
};
loginPage: {
titleText?: string;
subtitleText?: string;
},
signupPage?: {
};
signupPage: {
titleText?: string;
subtitleText?: string;
},
resourceAuthPage?: {
};
resourceAuthPage: {
showLogo?: boolean;
hidePoweredBy?: boolean;
titleText?: string;
subtitleText?: string;
},
};
footer?: string;
};
};