-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig-sample.php
159 lines (134 loc) · 4.02 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<?php
/**
* The configuration for the UniFi Controller Client Alias Sync script.
*
* NOTE: DO NOT EDIT config-sample.php. Instead, copy it to config.php and
* customize that new file.
*
* @package UniFi_Client_Alias_Sync
*/
/********* REQUIRED SETTINGS *********/
/**
* Domain (or optionally the fully qualified URL) for the controller.
*
* Protocol (which must be "https://") is optional. Port number should be
* specified via UNIFI_ALIAS_SYNC_PORT. If specified here, then
* UNIFI_ALIAS_SYNC_PORT is ignored.
*
* Example: example.com or https://example.com
*
* @var string
*/
define( 'UNIFI_ALIAS_SYNC_CONTROLLER', '' );
/**
* The port number for the controller.
*
* Typically 8443 or 443. If a port number is included as part of
* UNIFI_ALIAS_SYNC_CONTROLLER then this value is ignored.
*
* @var int
*/
define( 'UNIFI_ALIAS_SYNC_PORT', 8443 );
/**
* 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",
] );
/**
* List of site names to exclude from consideration.
*
* Sites listed will not be used to find client aliases, nor will their clients
* receive any aliases.
*
* Any sites listed here will be excluded, superceding their inclusion in any
* other setting (such as UNIFI_ALIAS_SYNC_PRIORITIZED_SITES).
*
* @var array
*/
define( 'UNIFI_ALIAS_SYNC_EXCLUDE_SITES', [] );
/**
* List of clients to exclude from consideration.
*
* Clients listed will not be receive an alias on any site.
*
* Any clients listed here will be excluded, superceding their inclusion in any
* other setting (such as UNIFI_ALIAS_SYNC_ALIASES).
*
* @var array
*/
define( 'UNIFI_ALIAS_SYNC_EXCLUDE_CLIENTS', [] );
/**
* Boolean flag indicating if aliases can be overwritten.
*
* If enabled, client aliases defined at a higher priority will potentially
* overwrite existing client aliases defined on lower priority sites.
*
* @var bool
*/
define( 'UNIFI_ALIAS_SYNC_ALLOW_OVERWRITES', false );
/**
* 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', [] );