nestjs-cluster-throttle
Version:
Enterprise-grade rate limiting module for NestJS with Redis support, multiple strategies, and cluster mode
22 lines • 662 B
TypeScript
export interface GeoLocationResult {
country?: string;
countryCode?: string;
region?: string;
city?: string;
lat?: number;
lon?: number;
timezone?: string;
}
export interface GeoLocationProvider {
lookup(ip: string): Promise<GeoLocationResult | null>;
}
export interface GeoLocationOptions {
provider?: 'internal' | 'ip-api' | 'ipapi' | 'custom';
customProvider?: GeoLocationProvider;
allowedCountries?: string[];
blockedCountries?: string[];
onGeoBlock?: (ip: string, country: string, request: any) => void;
message?: string;
statusCode?: number;
}
//# sourceMappingURL=geo-location.interface.d.ts.map