mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-11 15:16:55 +03:00
* alexgeno/phone-verification-bundle/1.0 receipt * Delete post-install.txt * Fix check error: Text files should end with a newline * Fix check error: Wrong bundle name * Manifest.json improvements * Manifest.json improvements * Modify packages/snc_redis.yaml to set default redis connection * Modify packages/snc_redis.yaml to set default redis connection * Add routes * Add routes
28 lines
1.0 KiB
JSON
28 lines
1.0 KiB
JSON
{
|
|
"bundles": {
|
|
"AlexGeno\\PhoneVerificationBundle\\AlexGenoPhoneVerificationBundle": ["all"]
|
|
},
|
|
"copy-from-recipe": {
|
|
"config/": "%CONFIG_DIR%/"
|
|
},
|
|
"env": {
|
|
"#0": "1000..9999",
|
|
"PHONE_VERIFICATION_OTP_LENGTH": "4",
|
|
"#1": "for every 'to' no more than 10 initiations over 24 hours",
|
|
"PHONE_VERIFICATION_RATE_LIMIT_INITIATE_PERIOD_SECS": "86400",
|
|
"PHONE_VERIFICATION_RATE_LIMIT_INITIATE_COUNT": "10",
|
|
"#2": "for every 'to' no more than 5 failed completions over 5 minutes",
|
|
"PHONE_VERIFICATION_RATE_LIMIT_COMPLETE_PERIOD_SECS": "300",
|
|
"PHONE_VERIFICATION_RATE_LIMIT_COMPLETE_COUNT": "5"
|
|
},
|
|
"add-lines": [
|
|
{
|
|
"file": "config/packages/snc_redis.yaml",
|
|
"position": "after_target",
|
|
"warn_if_missing": true,
|
|
"target": " clients:",
|
|
"content": " default:\n type: predis\n alias: default\n dsn: \"%env(REDIS_URL)%\""
|
|
}
|
|
]
|
|
}
|