disable local and wg sites with flag

This commit is contained in:
miloschwartz
2025-06-17 16:35:05 -04:00
parent 32e54d0f94
commit 7fd1fb89f1
6 changed files with 35 additions and 9 deletions

View File

@@ -38,6 +38,12 @@ export function pullEnv(): Env {
process.env.FLAGS_ALLOW_RAW_RESOURCES === "true" ? true : false,
allowBaseDomainResources:
process.env.FLAGS_ALLOW_BASE_DOMAIN_RESOURCES === "true"
? true
: false,
disableLocalSites:
process.env.FLAGS_DISABLE_LOCAL_SITES === "true" ? true : false,
disableBasicWireguardSites:
process.env.FLAGS_DISABLE_BASIC_WIREGUARD_SITES === "true"
? true
: false
}

View File

@@ -22,5 +22,7 @@ export type Env = {
emailVerificationRequired: boolean;
allowRawResources: boolean;
allowBaseDomainResources: boolean;
disableLocalSites: boolean;
disableBasicWireguardSites: boolean;
};
};