Skip to content

Commit 1ddf1d2

Browse files
committed
.settings.php доработка
1 parent 0d7e600 commit 1ddf1d2

File tree

3 files changed

+68
-0
lines changed

3 files changed

+68
-0
lines changed

environments/default/bitrix/.settings.php

+6
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,10 @@
9191
'readonly' => true,
9292
),
9393
'cache' => $cache,
94+
'crypto' => [
95+
'value' => [
96+
'crypto_key' => 'mysupersecretphrase',
97+
],
98+
'readonly' => true,
99+
]
94100
);

environments/dev/bitrix/.settings.php

+31
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,30 @@
1313

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

16+
$cache = array (
17+
'value' => array (
18+
'type' => 'files',
19+
),
20+
'readonly' => false,
21+
);
22+
23+
24+
if (env('USE_MEMCACHE')) {
25+
$cache = array(
26+
'value' =>
27+
array(
28+
'type' => 'memcache',
29+
'memcache' => array(
30+
'host' => '127.0.0.1',
31+
'port' => '11211',
32+
'sid' => $_SERVER["DOCUMENT_ROOT"].'#site01',
33+
),
34+
),
35+
'readonly' => false
36+
);
37+
}
38+
39+
1640
return array (
1741
'utf_mode' =>
1842
array (
@@ -66,4 +90,11 @@
6690
),
6791
'readonly' => true,
6892
),
93+
'cache' => $cache,
94+
'crypto' => [
95+
'value' => [
96+
'crypto_key' => 'mysupersecretphrase',
97+
],
98+
'readonly' => true,
99+
]
69100
);

environments/prod/bitrix/.settings.php

+31
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,30 @@
1313

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

16+
$cache = array (
17+
'value' => array (
18+
'type' => 'files',
19+
),
20+
'readonly' => false,
21+
);
22+
23+
24+
if (env('USE_MEMCACHE')) {
25+
$cache = array(
26+
'value' =>
27+
array(
28+
'type' => 'memcache',
29+
'memcache' => array(
30+
'host' => '127.0.0.1',
31+
'port' => '11211',
32+
'sid' => $_SERVER["DOCUMENT_ROOT"].'#site01',
33+
),
34+
),
35+
'readonly' => false
36+
);
37+
}
38+
39+
1640
return array (
1741
'utf_mode' =>
1842
array (
@@ -66,4 +90,11 @@
6690
),
6791
'readonly' => true,
6892
),
93+
'cache' => $cache,
94+
'crypto' => [
95+
'value' => [
96+
'crypto_key' => 'mysupersecretphrase',
97+
],
98+
'readonly' => true,
99+
]
69100
);

0 commit comments

Comments
 (0)