-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenv.example
168 lines (123 loc) · 5.45 KB
/
env.example
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
160
161
162
163
164
165
166
167
168
##################################################################
#
# Chimera
#
##################################################################
# Note: *** indicates optional field, leave blank after =
# Note: all FILEPATH variables should be absolute paths to file, FOLDERPATH should be absolute paths to a folder
# Note: choices like (true | false) indicate multiple choice; pick one of the values separated by "|"
#### Base Info ####
NODE_ENV = (production | development) (if you're asking yourself "which one am I supposed to put?" or "what does this mean?", keep this at production)
chimeraInstances = Number of instances to run pm2 cluster mode (keep it at one if you only want one thread on your CPU)
##### Camera Information #####
cameras = Array of camera names as JSON -> Ex: "["front door","backyard","garage"]"
##### Webhooks and URLs #####
alert_URL = Primary alert webhook url
admin_alert_URL = Admin alert webhook url
##### Authorization Info #####
templink_PIN = PIN for alt login, sends temp link to webhook that expires
PRINTPASSWORD = (true | false) (fret if you leave this on in prod)
SECRETKEY = AUTH SECRET KEY FOR HASHING
##################################################################
#
# Gateway
#
##################################################################
##### Proxy Details #####
command_PROXY_ON = (true | false)
schedule_PROXY_ON = (true | false)
storage_PROXY_ON = (true | false)
livestream_PROXY_ON = (true | false)
object_PROXY_ON = (true | false)
##### Server Information #####
gateway_ON = (true | false)
gateway_PORT = Port to run command server for http
gateway_HOST = https://gateway.server.example or http://127.0.0.1:8080 (no slash at the end pls)
##### HTTPS Info #####
gateway_PORT_SECURE = Port to run command server for https ***
privateKey_FILEPATH = File path for KEY ***
certificate_FILEPATH = File path for CERT ***
gateway_HTTPS_Redirect = (true | false) ***
##################################################################
#
# Command
#
##################################################################
##### Server Information #####
command_ON = (true | false)
command_PORT = Port to run command server for http
command_HOST = https://command.server.example or http://127.0.0.1:8080 (no slash at the end pls)
##################################################################
#
# Schedule
#
##################################################################
##### Server Information #####
schedule_ON = (true | false)
schedule_PORT = Port for schedule server
schedule_HOST = https://schedule.server.example or http://127.0.0.1:8081
scheduler_AUTH = Authorization token for scheduler server to bypass auth (keep secret)
##################################################################
#
# Storage
#
##################################################################
##### Server Information #####
storage_ON = (true | false)
storage_PORT = Port for storage server
storage_HOST = https://storage.server.example or http://127.0.0.1:8081
storage_FOLDERPATH = Base shared file path
storage_MOTION_CONF_FILEPATH = Motion Conf Path
ffmpeg_FILEPATH = FFMPEG executable path
ffprobe_FILEPATH = FFPROBE executable path
##################################################################
#
# Livestream
#
##################################################################
##### Server Information #####
livestream_ON = (true | false)
livestream_PORT = Port for livestream server
livestream_HOST = https://livestream.server.example or http://127.0.0.1:8081
livestream_FOLDERPATH = Base shared folder path
livestream_CAMERA_URL_1 = Full url with authentication for rtsp stream
# livestream_CAMERA_URL_2 =
# livestream_CAMERA_URL_3 =
# livestream_CAMERA_URL_4 = ...as many as you need. (consecutive numbers please)
##################################################################
#
# Object
#
##################################################################
object_ON = (true | false)
object_PORT = Port for object server
object_HOST = https://object.server.example or http://127.0.0.1:8081
object_FULL_URL = https://chimera.server.example/object or http://127.0.0.1:8081/object
object_AUTH = Authorization token to bypass auth for object (keep secret)
object_CAMERA_URLS = array of strings with HLS stream urls
object_minimumConfidence = minimum confidence to warrant an alert for people detection
object_alertUrls = object webhook url array
object_headless_ON = (true | false)
object_browser_FILEPATH = file path to browser for object headless to use
object_data_FOLDERPATH = folder path to hold temp data
object_THROTTLE = multiplier for cpu throttle for headless mode
##################################################################
#
# Memory
#
##################################################################
memory_ON = (true | false)
memory_PORT = Port for memory socket
memory_HOST = https://memory.socket.example or http://127.0.0.1:8081
memory_AUTH_TOKEN = Header token to connect to memory socket
##################################################################
#
# Database
#
##################################################################
database_NAME = postgres database name
database_USER = postgres user
database_PASSWORD = postgres password
database_HOST = postgresql://database.domain.example or localhost (note: do not add the port and do not add protocol if domain is LAN machine)
database_PORT = postgres server port
##################################################################