mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-26 04:05:54 +02:00
Optionally use file mode
This commit is contained in:
parent
5e53ea3607
commit
97fcaed9b4
2 changed files with 7 additions and 1 deletions
|
@ -11,6 +11,7 @@ import { createHybridClientServer } from "./hybridServer";
|
|||
import config from "@server/lib/config";
|
||||
import { setHostMeta } from "@server/lib/hostMeta";
|
||||
import { initTelemetryClient } from "./lib/telemetry.js";
|
||||
import { TraefikConfigManager } from "./lib/traefikConfig.js";
|
||||
|
||||
async function startServers() {
|
||||
await setHostMeta();
|
||||
|
@ -30,6 +31,10 @@ async function startServers() {
|
|||
hybridClientServer = await createHybridClientServer();
|
||||
} else {
|
||||
nextServer = await createNextServer();
|
||||
if (config.getRawConfig().traefik.file_mode) {
|
||||
const monitor = new TraefikConfigManager();
|
||||
await monitor.start();
|
||||
}
|
||||
}
|
||||
|
||||
let integrationServer;
|
||||
|
|
|
@ -156,7 +156,8 @@ export const configSchema = z
|
|||
.optional()
|
||||
.default("./dynamic/router_config.yml"),
|
||||
static_domains: z.array(z.string()).optional().default([]),
|
||||
site_types: z.array(z.string()).optional().default(["newt", "wireguard", "local"])
|
||||
site_types: z.array(z.string()).optional().default(["newt", "wireguard", "local"]),
|
||||
file_mode: z.boolean().optional().default(false)
|
||||
})
|
||||
.optional()
|
||||
.default({}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue