mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-30 06:29:23 +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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue