1<?php 2 3/** 4 * database connection details 5 ******************************/ 6$db['host'] = 'localhost'; 7$db['user'] = 'phpipam'; 8$db['pass'] = 'phpipamadmin'; 9$db['name'] = 'phpipam'; 10$db['port'] = 3306; 11 12/** 13 * Database webhost settings 14 * 15 * Change this setting if your MySQL database does not run on localhost 16 * and you want to use the automatic database installation method to 17 * create a database user for you (which by default is created @localhost) 18 * 19 * Set to the hostname or IP address of the webserver, or % to allow all 20 ******************************/ 21$db['webhost'] = ''; 22 23 24/** 25 * SSL options for MySQL 26 * 27 See http://php.net/manual/en/ref.pdo-mysql.php 28 https://dev.mysql.com/doc/refman/5.7/en/ssl-options.html 29 30 Please update these settings before setting 'ssl' to true. 31 All settings can be commented out or set to NULL if not needed 32 33 php 5.3.7 required 34 ******************************/ 35$db['ssl'] = false; // true/false, enable or disable SSL as a whole 36$db['ssl_key'] = '/path/to/cert.key'; // path to an SSL key file. Only makes sense combined with ssl_cert 37$db['ssl_cert'] = '/path/to/cert.crt'; // path to an SSL certificate file. Only makes sense combined with ssl_key 38$db['ssl_ca'] = '/path/to/ca.crt'; // path to a file containing SSL CA certs 39$db['ssl_capath'] = '/path/to/ca_certs'; // path to a directory containing CA certs 40$db['ssl_cipher'] = 'DHE-RSA-AES256-SHA:AES128-SHA'; // one or more SSL Ciphers 41$db['ssl_verify'] = 'true'; // Verify Common Name (CN) of server certificate? 42 43 44/** 45 * temporary table type to create slave subnets table 46 * (MEMORY, InnoDB) 47 ******************************/ 48$db['tmptable_engine_type'] = "MEMORY"; 49 50 51/** 52 * Mail sending and other parameters for pingCheck and DiscoveryCheck scripts 53 ******************************/ 54 55# pingCheck.php script parameters 56$config['ping_check_send_mail'] = true; // true/false, send or not mail on ping check 57$config['ping_check_method'] = false; // false/ping/pear/fping, reset scan method 58# discoveryCheck.php script parameters 59$config['discovery_check_send_mail'] = true; // true/false, send or not mail on discovery check 60$config['discovery_check_method'] = false; // false/ping/pear/fping, reset scan method 61# remove_offline_addresses.php script parameters 62$config['removed_addresses_send_mail'] = true; // true/false, send or not mail on pomoving inactive addresses 63$config['removed_addresses_timelimit'] = 86400 * 7; // int, after how many seconds of inactivity address will be deleted (7 days) 64# resolveIPaddresses.php script parameters 65$config['resolve_emptyonly'] = true; // if true it will only update the ones without DNS entry! 66$config['resolve_verbose'] = true; // verbose response - prints results, cron will email it to you! 67 68 69/** 70 * php debugging on/off 71 * 72 * true = SHOW all php errors 73 * false = HIDE all php errors 74 ******************************/ 75$debugging = false; 76 77/* 78 * API Crypt security provider. "mcrypt" or "openssl" 79 * 80 * default as of 1.3.2 "openssl" 81 ******************************/ 82// $api_crypt_encryption_library = "mcrypt"; 83 84 85/** 86 * Allow API calls over HTTP (security = none) 87 * 88 * @var bool 89 */ 90$api_allow_unsafe = false; 91 92/** 93 * manual set session name for auth 94 * increases security 95 * optional 96 ******************************/ 97$phpsessname = "phpipam"; 98 99/** 100 * Cookie SameSite settings ("None", "Lax"=Default, "Strict") 101 * - "Strict" increases security 102 * - "Lax" required for SAML2 103 * - "None" requires HTTPS 104 */ 105$cookie_samesite = "Lax"; 106 107/** 108 * Session storage - files or database 109 * 110 * @var string 111 */ 112$session_storage = "files"; 113 114 115/** 116 * Path to access phpipam in site URL, http:/url/BASE/ 117 * 118 * BASE definition should end with a trailing slash "/" 119 * BASE will be set automatically if not defined. Examples... 120 * 121 * If you access the login page at http://phpipam.local/ = define('BASE', "/"); 122 * If you access the login page at http://company.website/phpipam/ = define('BASE', "/phpipam/"); 123 * If you access the login page at http://company.website/ipam/ = define('BASE', "/ipam/"); 124 * 125 ******************************/ 126if(!defined('BASE')) 127define('BASE', "/"); 128 129 130/** 131 * Multicast unique mac requirement - section or vlan 132 ******************************/ 133if(!defined('MCUNIQUE')) 134define('MCUNIQUE', "section"); 135 136 137/** 138 * SAML mappings 139 ******************************/ 140if(!defined('MAP_SAML_USER')) 141define('MAP_SAML_USER', true); // Enable SAML username mapping 142 143if(!defined('SAML_USERNAME')) 144define('SAML_USERNAME', 'admin'); // Map SAML to explicit user 145 146 147/** 148 * Permit private subpages - private apps under /app/tools/custom/<custom_app_name>/index.php 149 ******************************/ 150$private_subpages = array(); 151 152 153/** 154 * Google MAPs API key for locations to display map 155 * 156 * Obtain key: Go to your Google Console (https://console.developers.google.com) and enable "Google Maps JavaScript API" 157 * from overview tab, so go to Credentials tab and make an API key for your project. 158 ******************************/ 159$gmaps_api_key = ""; 160$gmaps_api_geocode_key = ""; 161 162/** 163 * proxy connection details 164 ******************************/ 165$proxy_enabled = false; // Enable/Disable usage of the Proxy server 166$proxy_server = 'myproxy.something.com'; // Proxy server FQDN or IP 167$proxy_port = '8080'; // Proxy server port 168$proxy_user = 'USERNAME'; // Proxy Username 169$proxy_pass = 'PASSWORD'; // Proxy Password 170$proxy_use_auth = false; // Enable/Disable Proxy authentication 171 172/** 173 * General tweaks 174 ******************************/ 175$config['logo_width'] = 220; // logo width 176$config['requests_public'] = true; // Show IP request module on login page 177$config['split_ip_custom_fields'] = false; // Show custom fields in separate table when editing IP address 178 179/** 180 * PHP CLI binary for scanning and network discovery. 181 * 182 * The default behaviour is to use the system wide default php version symlinked to php in PHP_BINDIR (/usr/bin/php). 183 * If multiple php versions are present; overide selection with $php_cli_binary. 184 */ 185// $php_cli_binary = '/usr/bin/php7.1'; 186 187/** 188 * Path to mysqldump binary 189 * 190 * default: '/usr/bin/mysqldump' 191 */ 192// $mysqldump_cli_binary = '/usr/bin/mysqldump'; 193