feat(core): Rate limit forgot password endpoint (#7604)

Github issue / Community forum post (link here to close automatically):

---------

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <netroy@users.noreply.github.com>
This commit is contained in:
Ricardo Espinoza
2023-11-03 13:44:12 -04:00
committed by GitHub
parent acec9bad71
commit 5790e251b8
7 changed files with 52 additions and 12 deletions

View File

@@ -55,6 +55,9 @@ export abstract class AbstractServer {
this.app = express();
this.app.disable('x-powered-by');
const proxyHops = config.getEnv('proxy_hops');
if (proxyHops > 0) this.app.set('trust proxy', proxyHops);
this.protocol = config.getEnv('protocol');
this.sslKey = config.getEnv('ssl_key');
this.sslCert = config.getEnv('ssl_cert');