mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
17 lines
441 B
TypeScript
17 lines
441 B
TypeScript
import { ServerConfig } from './server-config.interface';
|
|
|
|
/**
|
|
* Server configuration related to the UI.
|
|
*/
|
|
export class UIServerConfig extends ServerConfig {
|
|
|
|
// rateLimiter is used to limit the amount of requests a user is allowed make in an amount of time, in order to prevent overloading the server
|
|
rateLimiter?: {
|
|
windowMs: number;
|
|
max: number;
|
|
};
|
|
|
|
// Trust X-FORWARDED-* headers from proxies
|
|
useProxies: boolean;
|
|
}
|