add traefik settings to config and use fullDomain

This commit is contained in:
Milo Schwartz 2024-10-22 00:09:27 -04:00
parent c7bbef5c05
commit 27090c51a8
5 changed files with 45 additions and 52 deletions

View file

@ -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[];
}
}
}
}