pull host from config

This commit is contained in:
Milo Schwartz 2024-10-20 14:15:19 -04:00
parent 36db155a04
commit cdb76bb071
No known key found for this signature in database

View file

@ -26,17 +26,13 @@ export function buildTraefikConfig(
): DynamicTraefikConfig {
const middlewareName = "badger";
// if (!targets.length) {
// return {};
// }
const http: DynamicTraefikConfig["http"] = {
routers: {
main: {
entryPoints: ["http"],
entryPoints: ["https"],
middlewares: [],
service: "service-main",
rule: "Host(`fossorial.io`)",
rule: "Host(`" + new URL(config.app.base_url).hostname + "`)",
},
},
services: {