mobile api changes + docker image basics
This commit is contained in:
21
environments/cutlergyor/apache2/config/rest/main-local.php
Normal file
21
environments/cutlergyor/apache2/config/rest/main-local.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
$config = [
|
||||
'components' => [
|
||||
'request' => [
|
||||
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
|
||||
'cookieValidationKey' => 'cutler_prod_rest_UTVb6_cw5UgJ4jukRO3ftYIxGBUfTJJw',
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
//if (!YII_ENV_TEST) {
|
||||
// // configuration adjustments for 'dev' environment
|
||||
// $config['bootstrap'][] = 'debug';
|
||||
// $config['modules']['debug'] = 'yii\debug\Module';
|
||||
//
|
||||
// $config['bootstrap'][] = 'gii';
|
||||
// $config['modules']['gii'] = 'yii\gii\Module';
|
||||
//}
|
||||
|
||||
return $config;
|
||||
43
environments/cutlergyor/apache2/config/rest/main.php
Normal file
43
environments/cutlergyor/apache2/config/rest/main.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
$params = array_merge(
|
||||
require(__DIR__ . '/../../common/config/params.php'),
|
||||
require(__DIR__ . '/../../common/config/params-local.php'),
|
||||
require(__DIR__ . '/params.php'),
|
||||
require(__DIR__ . '/params-local.php')
|
||||
);
|
||||
|
||||
return [
|
||||
'id' => 'app-rest',
|
||||
'name' =>'Fitness recepció',
|
||||
'basePath' => dirname(__DIR__),
|
||||
'bootstrap' => ['log'],
|
||||
'controllerNamespace' => 'rest\controllers',
|
||||
'components' => [
|
||||
'request' => [
|
||||
'enableCsrfValidation'=>false,
|
||||
'csrfParam' => '_csrf-rest',
|
||||
'parsers' => [
|
||||
'application/json' => 'yii\web\JsonParser',
|
||||
]
|
||||
],
|
||||
'user' => [
|
||||
'identityClass' => 'common\models\User',
|
||||
'enableSession' => false,
|
||||
'enableAutoLogin' => false,
|
||||
'loginUrl' => null,
|
||||
],
|
||||
'log' => [
|
||||
'traceLevel' => YII_DEBUG ? 3 : 0,
|
||||
'targets' => [
|
||||
[
|
||||
'class' => 'yii\log\FileTarget',
|
||||
'levels' => ['error', 'warning'],
|
||||
],
|
||||
],
|
||||
],
|
||||
'errorHandler' => [
|
||||
'errorAction' => 'site/error',
|
||||
],
|
||||
],
|
||||
'params' => $params,
|
||||
];
|
||||
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
return [
|
||||
];
|
||||
4
environments/cutlergyor/apache2/config/rest/params.php
Normal file
4
environments/cutlergyor/apache2/config/rest/params.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
return [
|
||||
'adminEmail' => 'admin@example.com',
|
||||
];
|
||||
Reference in New Issue
Block a user