stuffs like bruh wtf

This commit is contained in:
mjallen18
2026-02-04 19:40:00 -06:00
parent 87fb1c96e5
commit 1f99318fcd
5 changed files with 146 additions and 8 deletions

View File

@@ -28,9 +28,16 @@ let
let
makeRouter =
router:
let
hostRule =
if router.subdomain == "" then
"Host(`${domain}`)"
else
"Host(`${router.subdomain}.${domain}`)";
in
nameValuePair router.subdomain {
entryPoints = router.entryPoints;
rule = "Host(`${router.subdomain}.${domain}`)";
rule = hostRule;
service = router.service;
middlewares = router.middlewares ++ [
"crowdsec"