mirror of
https://github.com/YunoHost-Apps/phpipam_ynh.git
synced 2024-09-03 19:56:39 +02:00
Update config.dist.php
This commit is contained in:
parent
b604f6bc1e
commit
96ef20e777
1 changed files with 29 additions and 40 deletions
|
@ -33,19 +33,15 @@ $db['webhost'] = '%';
|
||||||
php 5.3.7 required
|
php 5.3.7 required
|
||||||
******************************/
|
******************************/
|
||||||
$db['ssl'] = false; // true/false, enable or disable SSL as a whole
|
$db['ssl'] = false; // true/false, enable or disable SSL as a whole
|
||||||
$db['ssl_key'] = '/path/to/cert.key'; // path to an SSL key file. Only makes sense combined with ssl_cert
|
// $db['ssl_key'] = '/path/to/cert.key'; // path to an SSL key file. Only makes sense combined with ssl_cert
|
||||||
$db['ssl_cert'] = '/path/to/cert.crt'; // path to an SSL certificate file. Only makes sense combined with ssl_key
|
// $db['ssl_cert'] = '/path/to/cert.crt'; // path to an SSL certificate file. Only makes sense combined with ssl_key
|
||||||
$db['ssl_ca'] = '/path/to/ca.crt'; // path to a file containing SSL CA certs
|
// $db['ssl_ca'] = '/path/to/ca.crt'; // path to a file containing SSL CA certs
|
||||||
$db['ssl_capath'] = '/path/to/ca_certs'; // path to a directory containing CA certs
|
// $db['ssl_capath'] = '/path/to/ca_certs'; // path to a directory containing CA certs
|
||||||
$db['ssl_cipher'] = 'DHE-RSA-AES256-SHA:AES128-SHA'; // one or more SSL Ciphers
|
// $db['ssl_cipher'] = 'HIGH:!PSK:!SHA:!MD5:!RC4:!aNULL'; // one or more SSL Ciphers, see openssl ciphers -v '....'
|
||||||
$db['ssl_verify'] = 'true'; // Verify Common Name (CN) of server certificate?
|
// $db['ssl_verify'] = 'true'; // Verify Common Name (CN) of server certificate?
|
||||||
|
|
||||||
|
$db['tmptable_engine_type'] = "MEMORY"; // Temporary table type to construct complex queries (MEMORY, InnoDB)
|
||||||
/**
|
$db['use_cte'] = 1; // Use recursive CTE queries [>=MariaDB 10.2.2, >=MySQL 8.0] (0=disabled, 1=autodetect, 2=force enable)
|
||||||
* temporary table type to create slave subnets table
|
|
||||||
* (MEMORY, InnoDB)
|
|
||||||
******************************/
|
|
||||||
$db['tmptable_engine_type'] = "MEMORY";
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -64,6 +60,7 @@ $config['removed_addresses_timelimit'] = 86400 * 7; // int, after how many seco
|
||||||
# resolveIPaddresses.php script parameters
|
# resolveIPaddresses.php script parameters
|
||||||
$config['resolve_emptyonly'] = true; // if true it will only update the ones without DNS entry!
|
$config['resolve_emptyonly'] = true; // if true it will only update the ones without DNS entry!
|
||||||
$config['resolve_verbose'] = true; // verbose response - prints results, cron will email it to you!
|
$config['resolve_verbose'] = true; // verbose response - prints results, cron will email it to you!
|
||||||
|
$config['disable_main_login_form'] = false; // disable main login form if you want use another authentification method by default (SAML, LDAP, etc.)
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -75,9 +72,12 @@ $config['resolve_verbose'] = true; // verbose response - print
|
||||||
$debugging = false;
|
$debugging = false;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* API Crypt security provider. "mcrypt" or "openssl"
|
* API Crypt security provider. "mcrypt" or "openssl*"
|
||||||
|
* Supported methods:
|
||||||
|
* openssl-128-cbc (alias openssl, openssl-128) *default
|
||||||
|
* openssl-256-cbc (alias openssl-256)
|
||||||
*
|
*
|
||||||
* default as of 1.3.2 "openssl"
|
* default as of 1.3.2 "openssl-128-cbc"
|
||||||
******************************/
|
******************************/
|
||||||
// $api_crypt_encryption_library = "mcrypt";
|
// $api_crypt_encryption_library = "mcrypt";
|
||||||
|
|
||||||
|
@ -99,8 +99,8 @@ $phpsessname = "phpipam";
|
||||||
/**
|
/**
|
||||||
* Cookie SameSite settings ("None", "Lax"=Default, "Strict")
|
* Cookie SameSite settings ("None", "Lax"=Default, "Strict")
|
||||||
* - "Strict" increases security
|
* - "Strict" increases security
|
||||||
* - "Lax" required for SAML2
|
* - "Lax" required for SAML2, some SAML topologies may require "None".
|
||||||
* - "None" requires HTTPS
|
* - "None" requires HTTPS (implies "Secure;")
|
||||||
*/
|
*/
|
||||||
$cookie_samesite = "Lax";
|
$cookie_samesite = "Lax";
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ $cookie_samesite = "Lax";
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
$session_storage = "files";
|
$session_storage = "database";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -133,32 +133,11 @@ define('BASE', "__PATH__/");
|
||||||
if(!defined('MCUNIQUE'))
|
if(!defined('MCUNIQUE'))
|
||||||
define('MCUNIQUE', "section");
|
define('MCUNIQUE', "section");
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* SAML mappings
|
|
||||||
******************************/
|
|
||||||
if(!defined('MAP_SAML_USER'))
|
|
||||||
define('MAP_SAML_USER', true); // Enable SAML username mapping
|
|
||||||
|
|
||||||
if(!defined('SAML_USERNAME'))
|
|
||||||
define('SAML_USERNAME', 'admin'); // Map SAML to explicit user
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Permit private subpages - private apps under /app/tools/custom/<custom_app_name>/index.php
|
* Permit private subpages - private apps under /app/tools/custom/<custom_app_name>/index.php
|
||||||
******************************/
|
******************************/
|
||||||
$private_subpages = array();
|
$private_subpages = array();
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Google MAPs API key for locations to display map
|
|
||||||
*
|
|
||||||
* Obtain key: Go to your Google Console (https://console.developers.google.com) and enable "Google Maps JavaScript API"
|
|
||||||
* from overview tab, so go to Credentials tab and make an API key for your project.
|
|
||||||
******************************/
|
|
||||||
$gmaps_api_key = "";
|
|
||||||
$gmaps_api_geocode_key = "";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* proxy connection details
|
* proxy connection details
|
||||||
******************************/
|
******************************/
|
||||||
|
@ -169,12 +148,22 @@ $proxy_user = 'USERNAME'; // Proxy Username
|
||||||
$proxy_pass = 'PASSWORD'; // Proxy Password
|
$proxy_pass = 'PASSWORD'; // Proxy Password
|
||||||
$proxy_use_auth = false; // Enable/Disable Proxy authentication
|
$proxy_use_auth = false; // Enable/Disable Proxy authentication
|
||||||
|
|
||||||
|
$offline_mode = false; // Offline mode, disable server-side Internet requests (proxy/OpenStreetMap)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Failed access
|
||||||
|
* Message to log into webserver logs in case of failed access, for further processing by tools like Fail2Ban
|
||||||
|
* The message can contain a %u parameter which will be replaced with the login user identifier.
|
||||||
|
******************************/
|
||||||
|
// $failed_access_message = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* General tweaks
|
* General tweaks
|
||||||
******************************/
|
******************************/
|
||||||
$config['logo_width'] = 220; // logo width
|
$config['logo_width'] = 220; // logo width
|
||||||
$config['requests_public'] = true; // Show IP request module on login page
|
$config['requests_public'] = true; // Show IP request module on login page
|
||||||
$config['split_ip_custom_fields'] = false; // Show custom fields in separate table when editing IP address
|
$config['split_ip_custom_fields'] = false; // Show custom fields in separate table when editing IP address
|
||||||
|
$config['footer_message'] = ""; // Custom message included in the footer of every page
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PHP CLI binary for scanning and network discovery.
|
* PHP CLI binary for scanning and network discovery.
|
||||||
|
@ -182,7 +171,7 @@ $config['split_ip_custom_fields'] = false; // Show custom field
|
||||||
* The default behaviour is to use the system wide default php version symlinked to php in PHP_BINDIR (/usr/bin/php).
|
* The default behaviour is to use the system wide default php version symlinked to php in PHP_BINDIR (/usr/bin/php).
|
||||||
* If multiple php versions are present; overide selection with $php_cli_binary.
|
* If multiple php versions are present; overide selection with $php_cli_binary.
|
||||||
*/
|
*/
|
||||||
// $php_cli_binary = '/usr/bin/php7.1';
|
// $php_cli_binary = '/usr/bin/php7.4';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Path to mysqldump binary
|
* Path to mysqldump binary
|
||||||
|
|
Loading…
Reference in a new issue