forked from toxuin/alarmserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
71 lines (62 loc) · 1.75 KB
/
config.yaml
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
debug: false
hikvision:
enabled: true
cams:
myCam:
address: 192.168.1.69
https: false
username: admin
password: admin1234
rawTcp: false
myDoorbell:
address: 192.168.1.13
https: false
username: admin
password: admin666
# USE RAW TCP IF HTTP STREAMING DOES NOT WORK
rawTcp: true
hisilicon:
enabled: true
port: 15002
dahua:
enabled: true
cams:
myCam:
address: 192.168.1.13
https: false
username: admin
password: admin1234
# USE channel FOR NVRs TO SELECT THE CAMERA, IF NOT USED - DELETE OR COMMENT
channel: 1
# IF ALL EVENTS ARE NEEDED - DELETE OR COMMENT FOLLOWING LINE
events: VideoMotion,CrossLineDetection,AlarmLocal,VideoLoss,VideoBlind
ftp:
enabled: true
port: 21
password: "root"
allowFiles: true
rootPath: "./ftp"
mqtt:
enabled: true
username: alarmserver
password: "assword"
port: 1883
server: "mqtt.example.com"
topicroot: camera-alerts
webhooks:
enabled: true
items:
- url: "https://webhook.site/52d57401-0ea3-4e43-80a0-ceb02fba2d1e"
method: "GET" # DEFAULTS TO POST
headers:
- "X-Beep: boop"
# YOU CAN USE TEMPLATE VARIABLES TO FORM THE URL: .Camera, .Event, .Extra
- url: "https://example.com/webhooks/{{ .Camera }}/events/{{ .Event }}"
# YOU CAN ALSO USE TEMPLATE VARIABLES IN THE PAYLOAD BODY!
# BELOW EXAMPLE DELIVERS RAW EVENT TO THE ENDPOINT
bodyTemplate: '{{ .Extra }}'
- url: "https://api.telegram.org/bot121212121:token/sendMessage?chat_id=43434343434&text=hello"
# SIMPLE SHORTHAND FORM FOR THE SAME STUFF AS ABOVE, WILL PERFORM A POST TO EACH URL
urls:
- "https://example.com/camera-webhooks"
- "https://example.com/another-endpoint"