Skip to content

Commit

Permalink
Add support for regex in hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
julienvincent committed Jul 16, 2024
1 parent 95ecf4d commit 294bb17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/k16/kl/api/proxy.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 294bb17

Please sign in to comment.