forked from coffee2code/unifi-client-alias-sync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-sample.php
107 lines (87 loc) · 2.58 KB
/
config-sample.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?php
/**
* The configuration for the UniFi Client Alias Sync script.
*
* @package UniFi_Client_Alias_Sync
*/
/********* REQUIRED SETTINGS *********/
/**
* Fully qualified URL for the controller.
*
* Must include protocol ("https://") and port number (":8443" or ":443").
* Example: https://example.com:8443
*
* @var string
*/
define( 'UNIFI_ALIAS_SYNC_CONTROLLER', '' );
/**
* Username for the admin account for the controller.
*
* @var string
*/
define( 'UNIFI_ALIAS_SYNC_USER', '' );
/**
* Password for the admin account for the controller.
*
* @var string
*/
define( 'UNIFI_ALIAS_SYNC_PASSWORD', '' );
/********* END OF REQUIRED SETTINGS *********/
/**
* Boolean flag indicating if SSL connection to the controller should be
* verified.
*
* This should be set to true unless you are on a secure local network and
* trust non-SSL connections to the controller.
*
* @var bool
*/
define( 'UNIFI_ALIAS_SYNC_VERIFY_SSL', true );
/**
* Boolean flag indicating if the script should only perform a dry run.
*
* A dry run will function in every way like a live run except that the final
* step of actually syncing an alias to a client entry will not be performed.
* This is especially useful for viewing the status messages during a dry run to
* ensure everything operates as expected.
*
* @var bool
*/
define( 'UNIFI_ALIAS_SYNC_DRY_RUN', true );
/**
* Boolean flag indicating if debug mode should be enabled.
*
* Currently debug mode only sets the client API into debug mode, allowing
* debugging of the underlying API but not yet the sync script itself.
*
* @var bool
*/
define( 'UNIFI_ALIAS_SYNC_DEBUG', false );
/**
* List of aliases to use for matching unaliased clients.
*
* Takes precedence over all sites in terms of defining the alias for matching
* unaliased clients.
*
* An associative array of MAC addresses and their associated aliases.
*
* @var array
*/
define( 'UNIFI_ALIAS_SYNC_ALIASES', [
// "MAC address" => "Its Alias",
] );
/**
* Explicitly prioritized list of sites.
*
* Array of site names. The order of sites is important in determining where a
* client alias is first obtained for syncing to other sites. By default, the
* site with the name 'default' is given highest priority, then all remaining
* sites are alphabetically listed after by name. This list explicitly places
* the listed sites at the beginning of the list in the order provided.
*
* Sites that don't exist are ignored. Sites not listed will abide by the
* default prioritization.
*
* @var array
*/
define( 'UNIFI_ALIAS_SYNC_PRIORITIZED_SITES', [] );