Skip to content

Commit

Permalink
Merge pull request #10 from kozalosev/feature/rate-limiter
Browse files Browse the repository at this point in the history
Inline requests limiter
  • Loading branch information
Leonid Kozarin authored Sep 10, 2023
2 parents 059042c + 64be22b commit 6a7a0ab
Show file tree
Hide file tree
Showing 10 changed files with 1,043 additions and 412 deletions.
7 changes: 7 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,10 @@ GAPI_MODE=GeoPlace
YAPI_MODE=Place
MSG_LOC_LIMIT=10
WEBHOOK_URL=

REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=r@d1shLPBtg

REQUESTS_LIMITER_MAX_ALLOWED=10
REQUESTS_LIMITER_TIMEFRAME=60
5 changes: 1 addition & 4 deletions .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ on:
- '**'
jobs:
Run-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macOS-latest ]
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
Expand Down
Loading

0 comments on commit 6a7a0ab

Please sign in to comment.