mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-04 10:05:53 +02:00
pull host from config
This commit is contained in:
parent
36db155a04
commit
cdb76bb071
1 changed files with 2 additions and 6 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue