-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
74 lines (59 loc) · 2.57 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
/* phpipam agent config file
******************************/
# set connection type
# api,mysql;
# ******************************/
$config['type'] = "mysql";
# set agent key
# ******************************/
$config['key'] = "bea5a9728cbdbf2c1d77e4d6dfeffddd";
# set scan method and path to ping file
# ping, fping or pear
# ******************************/
//$config['method'] = "pear";
//$config['pingpath'] = "/sbin/ping";
$config['method'] = "fping";
$config['pingpath'] = "/usr/sbin/fping";
# permit non-threaded checks (default: false)
# ******************************/
$config['nonthreaded'] = false;
# how many concurrent threads (default: 32)
# ****************************************/
$config['threads'] = 32;
# api settings, if api selected
# ******************************/
$config['api']['key'] = "";
# send mail diff
# ******************************/
$config['sendmail'] = false;
# remove inactive DHCP addresses
#
# reset_autodiscover_addresses: will remove addresses if description -- autodiscovered -- and is offline
# remove_inactive_dhcp : will remove inactive dhcp addresses
# ******************************/
$config['reset_autodiscover_addresses'] = false;
$config['remove_inactive_dhcp'] = false;
# mysql db settings, if mysql selected
# ******************************/
$config['db']['host'] = "DBhostname";
$config['db']['user'] = "DBUsername";
$config['db']['pass'] = "DBPassword";
$config['db']['name'] = "phpipam";
$config['db']['port'] = 3306;
/**
* SSL options for MySQL
*
See http://php.net/manual/en/ref.pdo-mysql.php
https://dev.mysql.com/doc/refman/5.7/en/ssl-options.html
Please update these settings before setting 'ssl' to true.
All settings can be commented out or set to NULL if not needed
php 5.3.7 required
******************************/
$config['db']['ssl'] = false; // true/false, enable or disable SSL as a whole
$config['db']['ssl_key'] = '/path/to/cert.key'; // path to an SSL key file. Only makes sense combined with ssl_cert
$config['db']['ssl_cert'] = '/path/to/cert.crt'; // path to an SSL certificate file. Only makes sense combined with ssl_key
$config['db']['ssl_ca'] = '/path/to/ca.crt'; // path to a file containing SSL CA certs
$config['db']['ssl_capath'] = '/path/to/ca_certs'; // path to a directory containing CA certs
$config['db']['ssl_cipher'] = 'DHE-RSA-AES256-SHA:AES128-SHA'; // one or more SSL Ciphers
$config['db']['ssl_verify'] = true; // Verify Common Name (CN) of server certificate?