mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-29 22:19:31 +02:00
add traefik settings to config and use fullDomain
This commit is contained in:
parent
c7bbef5c05
commit
27090c51a8
5 changed files with 45 additions and 52 deletions
|
@ -39,8 +39,8 @@ app.prepare().then(() => {
|
|||
if (!dev) {
|
||||
externalServer.use(
|
||||
rateLimitMiddleware({
|
||||
windowMin: 1,
|
||||
max: 100,
|
||||
windowMin: config.rate_limit.window_minutes,
|
||||
max: config.rate_limit.max_requests,
|
||||
type: "IP_ONLY",
|
||||
}),
|
||||
);
|
||||
|
@ -88,7 +88,7 @@ app.prepare().then(() => {
|
|||
internalServer.use(errorHandlerMiddleware);
|
||||
});
|
||||
|
||||
declare global {
|
||||
declare global { // TODO: eventually make seperate types that extend express.Request
|
||||
namespace Express {
|
||||
interface Request {
|
||||
user?: User;
|
||||
|
@ -97,4 +97,4 @@ declare global {
|
|||
userOrgIds?: string[];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue