Skip to content

Commit

Permalink
Documented how to add env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
karser committed Dec 10, 2019
1 parent eb557ae commit a162281
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Expand Up @@ -54,10 +54,17 @@ Configuration
```yaml
# app/config/config.yml (or config/packages/karser_recaptcha3.yaml if using Symfony4)
karser_recaptcha3:
site_key: 'key'
secret_key: 'secret'
site_key: '%env(RECAPTCHA3_KEY)%'
secret_key: '%env(RECAPTCHA3_SECRET)%'
score_threshold: 0.5
enabled: true
```

Add your site key and secret to your .env.local file:
```
###> karser/recaptcha3-bundle ###
RECAPTCHA3_KEY=my_site_key
RECAPTCHA3_SECRET=my_secret
###< karser/recaptcha3-bundle ###
```

Usage
Expand Down

0 comments on commit a162281

Please sign in to comment.