mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Задание параметров для рекапчи в продакшен режиме через env переменные
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
YII_DEBUG=true
|
||||
YII_ENV=dev
|
||||
JWT_USER_SECRET=
|
||||
RECAPTCHA_PUBLIC=
|
||||
RECAPTCHA_SECRET=
|
||||
|
||||
# Web
|
||||
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'),
|
||||
],
|
||||
],
|
||||
];
|
Reference in New Issue
Block a user