This repository has been archived by the owner on Mar 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
config-sample.jsonc
129 lines (129 loc) · 3.36 KB
/
config-sample.jsonc
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
{ /* If you copy this file, remove all the comments first */
"controller": {
"host": "192.168.1.250", /* address of Unifi Controller */
"port": 8443, /* port of Unifi Controller */
"user": "", /* username, .env file is preferred */
"password": "", /* password, .env file is preferred */
"site": "default" /* Unifi site to use for block/unblock */
},
"server": {
"key": "server.key", /* filename for ssl key */
"cert": "server.crt", /* filename for ssl certificate */
"port": 4000 /* port server is to listen on */
},
"data": {
"Group Name": { /* name below must match this*/
"name": "Group Name", /* must match the name on the line above */
"timers": [
/* array of objects:
* {
* "day": Mon=0 .. Sun=6 day of week tiner is for
* "action": 1 | 0 1=allowed, 0=blocked
* "time": 0000 24 hour time that action is to occur
* }
*
* array doesn't have to be sorted, but will be sorted when written out
*/
{
"day": 0,
"action": 1,
"time": "0700"
},
{
"day": 0,
"action": 0,
"time": "2230"
},
{
"day": 1,
"action": 1,
"time": "0700"
},
{
"day": 1,
"action": 0,
"time": "2230"
},
{
"day": 2,
"action": 1,
"time": "0700"
},
{
"day": 2,
"action": 0,
"time": "2230"
},
{
"day": 3,
"action": 1,
"time": "0700"
},
{
"day": 3,
"action": 0,
"time": "2230"
},
{
"day": 4,
"action": 1,
"time": "0700"
},
{
"day": 4,
"action": 0,
"time": "2400"
},
{
"day": 5,
"action": 1,
"time": "0000"
},
{
"day": 5,
"action": 0,
"time": "0100"
},
{
"day": 5,
"action": 1,
"time": "0700"
},
{
"day": 5,
"action": 0,
"time": "2400"
},
{
"day": 6,
"action": 1,
"time": "0000"
},
{
"day": 6,
"action": 0,
"time": "0100"
},
{
"day": 6,
"action": 1,
"time": "0700"
},
{
"day": 6,
"action": 0,
"time": "2230"
}
],
"block": [ /* array of mac addresses to be blocked */
"b8:27:eb:de:91:68",
"c8:60:00:9a:ba:ca",
"d8:1d:72:c6:20:96",
"90:2b:34:05:2f:27",
"2c:0e:3d:ad:e7:d4",
"50:1a:c5:a9:91:39",
"50:1a:c5:a9:91:37"
]
}
}
}