mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-04 18:14:53 +02:00
add login portal and traefik middleware auth for testing redirect login
This commit is contained in:
parent
0838679120
commit
87c4fc798f
14 changed files with 285 additions and 130 deletions
|
@ -5,6 +5,7 @@ import { DynamicTraefikConfig } from "./configSchema";
|
|||
import { and, like, eq } from "drizzle-orm";
|
||||
import logger from "@server/logger";
|
||||
import HttpCode from "@server/types/HttpCode";
|
||||
import env from "@server/environment";
|
||||
|
||||
export async function traefikConfigProvider(_: Request, res: Response) {
|
||||
try {
|
||||
|
@ -36,10 +37,8 @@ export function buildTraefikConfig(
|
|||
[middlewareName]: {
|
||||
plugin: {
|
||||
[middlewareName]: {
|
||||
// These are temporary values
|
||||
apiAddress:
|
||||
"http://host.docker.internal:3001/api/v1/badger",
|
||||
validToken: "abc123",
|
||||
apiBaseUrl: "http://localhost:3001/api/v1",
|
||||
appBaseUrl: env.BASE_URL,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue