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 { ): DynamicTraefikConfig {
const middlewareName = "badger"; const middlewareName = "badger";
// if (!targets.length) {
// return {};
// }
const http: DynamicTraefikConfig["http"] = { const http: DynamicTraefikConfig["http"] = {
routers: { routers: {
main: { main: {
entryPoints: ["http"], entryPoints: ["https"],
middlewares: [], middlewares: [],
service: "service-main", service: "service-main",
rule: "Host(`fossorial.io`)", rule: "Host(`" + new URL(config.app.base_url).hostname + "`)",
}, },
}, },
services: { services: {