From c94553ee9fc1f44d1b8b42721e8df758a8a658a8 Mon Sep 17 00:00:00 2001 From: Julien Vincent Date: Tue, 16 Jul 2024 16:59:37 -0600 Subject: [PATCH] Add support for regex in hosts --- src/k16/kl/api/proxy.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/k16/kl/api/proxy.clj b/src/k16/kl/api/proxy.clj index faad816..8b58100 100644 --- a/src/k16/kl/api/proxy.clj +++ b/src/k16/kl/api/proxy.clj @@ -7,7 +7,7 @@ (api.fs/from-config-dir "proxy/" (str module-name ".yaml"))) (defn- route->traefik-rule [{:keys [host path-prefix]}] - (cond-> (str "Host(`" host "`)") + (cond-> (str "HostRegexp(`" host "`)") path-prefix (str " && PathPrefix(`" path-prefix "`)"))) (defn- build-routes [module]