SamagraX-Stencil / stencil

NestJS on steroids 💪
https://stencil.samagra.io
MIT License
28 stars 30 forks source link

feat: GeoIP interceptor config expansion #173

Open techsavvyash opened 2 months ago

techsavvyash commented 2 months ago

Description

Present version of GeoIP interceptor only allows taking in a list of countries for blocking the requests, this should be expanded to allow for a lot more ways to define the config:

  1. List of continents
  2. List of countries
  3. List of states
  4. List of districts
  5. List of blocks (Refer to GeoQuery for the levels at which these things can be found)
  6. GeoFence
  7. List of coordinates
  8. Range of coordinates

On top of the above things we also need to give the user the ability to choose whether this list is of the regions where to allow the requests from or where to block the requests from.

Tasks