now uses formatters instead of hardcoded chain off individual configs

added formatter type to associate a service with their templates and
filepaths
This commit is contained in:
2026-07-16 02:04:04 +02:00
parent 344608f056
commit 41c37156af
7 changed files with 68 additions and 13 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import type { Service } from "./types";
should validate config, for now just checks for port collisions
**/
export class ConfigValidator {
static validate(services: Service[]){
static validatecaddyfile(services: Service[]){
const hostports = new Map<string, Set<number>>();
for (const service of services) {