mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-12 02:47:46 +00:00
add traefik settings to config and use fullDomain
This commit is contained in:
@@ -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[];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user