Clean up config for dns servers

This commit is contained in:
Owen
2026-10-28 15:51:08 -04:00
parent 3dd46e48ec
commit 8ce036b413
5 changed files with 63 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
// Which entry point is running. Standalone entry points set this before
// anything loads the config, so the config schema can skip requirements
// that only apply to the full Pangolin server.
export type RunMode = "server" | "dns";
let runMode: RunMode = "server";
export function setRunMode(mode: RunMode) {
runMode = mode;
}
export function getRunMode(): RunMode {
return runMode;
}