Skip to content

Commit

Permalink
Merge pull request #51 from gnosischain/feat/improvements
Browse files Browse the repository at this point in the history
Add support for Cloudflare Captcha
  • Loading branch information
giacomognosis authored Dec 22, 2024
2 parents af604f0 + d370726 commit 945f4fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ python3 -m flake8
#### Add enabled tokens

To enable tokens on the API just run the command `create_enabled_token`.
The environment variable `FAUCET_ENABLE_CLI_API` must be set to `True`.
Accepted parameters: token name, chain ID, token address, maximum amount per day per user, whether native or erc20

Samples below:
Expand Down
2 changes: 1 addition & 1 deletion api/api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

CORS_ALLOWED_ORIGINS = os.getenv('CORS_ALLOWED_ORIGINS', '*')

CAPTCHA_PROVIDER = os.getenv('CAPTCHA_PROVIDER', 'HCAPTCHA')
CAPTCHA_PROVIDER = os.getenv('CAPTCHA_PROVIDER', 'CLOUDFLARE')
CAPTCHA_VERIFY_ENDPOINT = os.getenv('CAPTCHA_VERIFY_ENDPOINT')
CAPTCHA_SECRET_KEY = os.getenv('CAPTCHA_SECRET_KEY')
CAPTCHA_SITE_KEY = os.getenv('CAPTCHA_SITE_KEY', None) # It's mandatory for HCAPTCHA
Expand Down

0 comments on commit 945f4fd

Please sign in to comment.