mirror of
https://github.com/elyby/accounts.git
synced 2024-12-26 15:10:22 +05:30
Задание параметров для рекапчи в продакшен режиме через env переменные
This commit is contained in:
parent
4b6bfa15ec
commit
1764fb6009
@ -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
|
||||||
|
9
api/config/config-prod.php
Normal file
9
api/config/config-prod.php
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
return [
|
||||||
|
'components' => [
|
||||||
|
'reCaptcha' => [
|
||||||
|
'public' => getenv('RECAPTCHA_PUBLIC'),
|
||||||
|
'secret' => getenv('RECAPTCHA_SECRET'),
|
||||||
|
],
|
||||||
|
],
|
||||||
|
];
|
Loading…
Reference in New Issue
Block a user