mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-12 10:58:06 +00:00
pull host from config
This commit is contained in:
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user