mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-04 10:05:53 +02:00
check for user before getting orgs, create default config
This commit is contained in:
parent
6d9731f071
commit
717aa09daa
6 changed files with 49 additions and 29 deletions
|
@ -33,12 +33,6 @@ export function buildTraefikConfig(
|
|||
|
||||
const tls = {
|
||||
certResolver: config.traefik.cert_resolver,
|
||||
// domains: [ // TODO: figure out if this is neccessary
|
||||
// {
|
||||
// main: baseDomain,
|
||||
// sans: ["*." + baseDomain],
|
||||
// },
|
||||
// ],
|
||||
};
|
||||
|
||||
const http: any = {
|
||||
|
@ -59,8 +53,8 @@ export function buildTraefikConfig(
|
|||
},
|
||||
};
|
||||
for (const target of targets) {
|
||||
const routerName = `router-${target.targetId}`;
|
||||
const serviceName = `service-${target.targetId}`;
|
||||
const routerName = `${target.targetId}-router`;
|
||||
const serviceName = `${target.targetId}-service`;
|
||||
|
||||
http.routers![routerName] = {
|
||||
entryPoints: [target.ssl ? config.traefik.https_entrypoint : config.traefik.https_entrypoint],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue