Skip to content

Commit

Permalink
.settings.php доработка
Browse files Browse the repository at this point in the history
  • Loading branch information
ProklUng committed Jul 23, 2021
1 parent 0d7e600 commit 1ddf1d2
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
6 changes: 6 additions & 0 deletions environments/default/bitrix/.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,10 @@
'readonly' => true,
),
'cache' => $cache,
'crypto' => [
'value' => [
'crypto_key' => 'mysupersecretphrase',
],
'readonly' => true,
]
);
31 changes: 31 additions & 0 deletions environments/dev/bitrix/.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,30 @@

$dotenv->load(realpath(__DIR__.'/../') . '/.env');

$cache = array (
'value' => array (
'type' => 'files',
),
'readonly' => false,
);


if (env('USE_MEMCACHE')) {
$cache = array(
'value' =>
array(
'type' => 'memcache',
'memcache' => array(
'host' => '127.0.0.1',
'port' => '11211',
'sid' => $_SERVER["DOCUMENT_ROOT"].'#site01',
),
),
'readonly' => false
);
}


return array (
'utf_mode' =>
array (
Expand Down Expand Up @@ -66,4 +90,11 @@
),
'readonly' => true,
),
'cache' => $cache,
'crypto' => [
'value' => [
'crypto_key' => 'mysupersecretphrase',
],
'readonly' => true,
]
);
31 changes: 31 additions & 0 deletions environments/prod/bitrix/.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,30 @@

$dotenv->load(realpath(__DIR__.'/../') . '/.env');

$cache = array (
'value' => array (
'type' => 'files',
),
'readonly' => false,
);


if (env('USE_MEMCACHE')) {
$cache = array(
'value' =>
array(
'type' => 'memcache',
'memcache' => array(
'host' => '127.0.0.1',
'port' => '11211',
'sid' => $_SERVER["DOCUMENT_ROOT"].'#site01',
),
),
'readonly' => false
);
}


return array (
'utf_mode' =>
array (
Expand Down Expand Up @@ -66,4 +90,11 @@
),
'readonly' => true,
),
'cache' => $cache,
'crypto' => [
'value' => [
'crypto_key' => 'mysupersecretphrase',
],
'readonly' => true,
]
);

0 comments on commit 1ddf1d2

Please sign in to comment.