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
No known key found for this signature in database
6 changed files with 35 additions and 9 deletions

View file

@ -61,6 +61,14 @@ export class Config {
? "true"
: "false";
process.env.DASHBOARD_URL = parsedConfig.app.dashboard_url;
process.env.FLAGS_DISABLE_LOCAL_SITES = parsedConfig.flags
?.disable_local_sites
? "true"
: "false";
process.env.FLAGS_DISABLE_BASIC_WIREGUARD_SITES = parsedConfig.flags
?.disable_basic_wireguard_sites
? "true"
: "false";
license.setServerSecret(parsedConfig.server.secret);