mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-07 03:15:12 +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 {
|
): 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: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue