feat: add ratelimit to every endpoint to prevent ddos. #122
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sarthi Preview Environments | |
on: | |
pull_request_target: | |
types: [ opened, closed, reopened, synchronize ] | |
pull_request: | |
types: [ opened, closed, reopened, synchronize ] | |
push: | |
# delete preview environments when branches are deleted | |
delete: | |
jobs: | |
sarthi_job: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up Sarthi | |
uses: tushar5526/sarthi-deploy@main | |
with: | |
compose_file: docker-compose.yaml # override this with the compose file name | |
sarthi_server_url: ${{ secrets.SARTHI_SERVER_URL }} | |
sarthi_secret: ${{ secrets.SARTHI_SECRET }} # Secret text generate while setting up the server |