Задание параметров для рекапчи в продакшен режиме через env переменные

This commit is contained in:
ErickSkrauch 2016-10-24 15:14:39 +03:00
parent 4b6bfa15ec
commit 1764fb6009
2 changed files with 11 additions and 0 deletions

View File

@ -2,6 +2,8 @@
YII_DEBUG=true YII_DEBUG=true
YII_ENV=dev YII_ENV=dev
JWT_USER_SECRET= JWT_USER_SECRET=
RECAPTCHA_PUBLIC=
RECAPTCHA_SECRET=
# Web # Web
VIRTUAL_HOST=account.ely.by,authserver.ely.by VIRTUAL_HOST=account.ely.by,authserver.ely.by

View File

@ -0,0 +1,9 @@
<?php
return [
'components' => [
'reCaptcha' => [
'public' => getenv('RECAPTCHA_PUBLIC'),
'secret' => getenv('RECAPTCHA_SECRET'),
],
],
];