fix .gitignore dir negation so config/ and scripts/ are tracked

This commit is contained in:
infra-bot
2026-08-27 16:14:23 +03:00
parent e14bfc676f
commit 34ff3a2693
19 changed files with 460 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
// Copy to /home/bitrix/www/bitrix/php_interface/dbconn.php and fill credentials.
// Key points vs stock VM file: BX_CRONTAB_SUPPORT, tmp dirs, utf8, umask.
define('BX_CRONTAB_SUPPORT', true);
define('DELAY_DB_CONNECT', true);
define('BX_UTF', true);
define("BX_FILE_PERMISSIONS", 0644);
define("BX_DIR_PERMISSIONS", 0755);
@umask(~(BX_FILE_PERMISSIONS | BX_DIR_PERMISSIONS) & 0777);
define("BX_TEMPORARY_FILES_DIRECTORY", "/tmp");
define("TMPDIR", "/tmp/php/upload");
$DBType = "mysql";
$DBHost = "localhost"; // unix socket, no TCP
$DBName = "sitemanager";
$DBLogin = "bitrix";
$DBPassword = "__DB_PASS__";
// Session temp dirs (php-side save_path also set in fpm pool)
session_save_path("/tmp/php_sessions/www");
@@ -0,0 +1,40 @@
<?php
// Copy to /home/bitrix/www/bitrix/.settings_extra.php
// Cache -> memcached instance on :11211 with igbinary serializer.
// Sessions are switched in .settings.php 'session' section (host memcached-sessions-svc note below).
return array(
'cache' => array(
'value' => array(
'type' => 'memcached',
'memcached' => array(
'host' => '127.0.0.1',
'port' => 11211,
),
// igbinary shrinks cache ~50% and is faster; php8.4-igbinary installed.
'serializer' => \Memcached::SERIALIZER_IGBINARY, // = 2
// Under load only one process regenerates cache, others get stale copy:
'use_lock' => true, // requires Bitrix main >= 24.0.0
'sid' => $_SERVER["DOCUMENT_ROOT"] . "#01",
),
'readonly' => false,
),
);
/* Sessions (put into .settings.php 'session' value section):
'session' => array(
'value' => array(
'mode' => 'separated',
'lifetime' => 14400,
'handlers' => array(
'kernel' => 'encrypted_cookies',
'general' => array(
'type' => 'memcache',
'host' => '127.0.0.1',
'port' => 11212,
),
),
),
'readonly' => true,
),
*/