-
Notifications
You must be signed in to change notification settings - Fork 15
/
test-relaymq.config
246 lines (238 loc) · 9.99 KB
/
test-relaymq.config
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
unixLogSocket: /tmp/grease.socket
sysLogSocket: /dev/log
httpUnixSocket: "{{TMP_DIR}}/maestroapi.sock"
clientId: WWRL000001
relaymq:
host: devcloud.wigwag.io
logging: true
# ---Only specify server_name if the RootCA is not in the default list
# This is only a valid option if you are not using a well-known CA
# server_name: "devcloud.wigwag.io"
client_cert: |
-----BEGIN CERTIFICATE-----
MIIE7TCCAtWgAwIBAgICAM4wDQYJKoZIhvcNAQELBQAwUzELMAkGA1UEBhMCVVMx
DjAMBgNVBAgMBVRleGFzMRMwEQYDVQQKDApXaWdXYWcgSW5jMR8wHQYDVQQDDBZX
aWdXYWcgSW50ZXJtZWRpYXRlIENBMB4XDTE3MDgzMTIwMzcxMVoXDTM3MDgyNjIw
MzcxMVowWDELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVRleGFzMQ8wDQYDVQQHDAZB
dXN0aW4xEzARBgNVBAoMCldpZ1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IJWUyQ/rkDTIPpAcepV2hfXGfuhbLsxqWX/rU39whtzFXKNRSOAM8798
o72ygAECgYEA9Hava1WAGyRF/B81688Hj69LHuyNMa26YuoJJOPs1HE9PXjlGFa5
rDdp99Xku8ZwqUN3H9USU/g7L23u0J3t5rx+2sTS08I2GlT7D0Ciza6qdyfrfMLd
wHHA/7A/qTfYBOcmUc0++cXd54DkC7VMc8MDlfeToEf+mrxlLYt+o5ECgYEA4h8G
Aq9zJfKQklOxdfIloDVwakuUNDA4yFBXJlcsRzwg58raEzqVYYiamOp2J1DkeME+
e9alsJacmeWsrt7cCs2jYgonLtMbR/UJoVJhkcSwe6VG0aafndwWUkLnd0/qzFi2
9bZ+ZlsiEteIijpnxFflF7siH9BoPLXL/icMwPECgYA6T1ToNSypTK2kxY0HAgq7
qwQwDBxhjR64GTq1IeiLg7cnwn5in80J1u3fv5UfdOXKed0gKqKEhOEZHw+nkwP7
1VostGXVPK3K+hooOTKb/N2MLmltCM376SYv1spYgol0Ie5x9JLg4OFdJtE+ObBS
rGFek/8SbBm+rtEzW+KJAQKBgDEQIjG69/Un6I6Xck3xOJDGh5nIxGN+gxOTuxUq
nQTn2wvwS9kYQQlkpoa/eNuXBbvd0jz0mgby5w/NceaPnJcLf4PqSA406Bp45JoI
Ufta/iAWAIPE76VE9+LpeWe+A2hLZ4dxDYQQChikg4/alGFZ4O+BPypAAh4KJDUF
LBNBAoGBAJ02An4SFF06KhozejUxH+2WenFf5HKCauK8S8tXZG32BuZa884AUutX
xWgcEMXwVWAbwPXMN8Ff8Ce8Ab7JREjNq2iK8krosd483wtLv23cc7/ZkS1kE+z+
8TGy2TtGzO/RVMbB648Bq9xk7cBzBmICwZ4li3OPbRMoGEVYIGDH
-----END RSA PRIVATE KEY-----
var_defs:
- key: "TMP_DIR"
value: "/tmp"
- key: "WIGWAG_DIR"
value: "/wigwag"
- key: "NODE_EXEC"
value: "/bin/node"
- key: "SOMEFRUIT"
value: "Bannana"
- key: "FRUITART"
value: |
.o. ooooooooo. ooooooooo. ooooo oooooooooooo
.888. `888 `Y88. `888 `Y88. `888' `888' `8
.8"888. 888 .d88' 888 .d88' 888 888
.8' `888. 888ooo88P' 888ooo88P' 888 888oooo8
.88ooo8888. 888 888 888 888 "
.8' `888. 888 888 888 o 888 o
o88o o8888o o888o o888o o888ooooood8 o888ooooood8
stats:
interval: 5 # frequency in seconds - default 300
check_mem: true # default true
check_mem_pace: 1 # means check every interval (default is 1 - every interval)
targets:
- file: "{{TMP_DIR}}/maestro.log"
rotate:
max_files: 10
max_file_size: 10000
max_total_size: 100000
rotate_on_start: true
delim: "\n"
format_time: "[%ld:%d] "
format_level: "<%s> "
format_tag: "{%s} "
format_origin: "(%s) "
filters:
- levels: all
format_pre: "PRE"
# JSON file
- file: /tmp/json-maestro.log
rotate:
max_files: 10
max_file_size: 10000
max_total_size: 100000
rotate_on_start: true
delim: "],\n"
format_time: "{\"time\":\"%ld:%d\"}, "
format_level: "{\"level\":\"%s\"}, "
format_tag: "{\"tag\":\"%s\"}, "
format_origin: "{\"origin\":\"%s\"}, "
format_pre_msg: "{ \"msg\":\""
format_post: "\"}"
flag_json_escape_strings: true
filters:
- levels: all
format_pre: "[" # you will wrap this output with { "log": [ OUTPUT ] }
# format_post: "]}" # I am not sure if this works
- name: "toCloud" # this is a special target for sending to the cloud. It must send as a JSON
format_time: "\"time\":\"%ld:%d\", "
format_level: "\"level\":\"%s\", "
format_tag: "\"tag\":\"%s\", "
format_origin: "\"origin\":\"%s\", "
format_pre_msg: "\"msg\":\""
format_post: "\"}"
flag_json_escape_strings: true
filters:
- levels: all
format_pre: "{" # you will wrap this output with { "log": [ OUTPUT ] }
container_templates:
- name: "deviceJS_process"
cgroup: # will implement later
mem_limit: 10000000
inherit_env: true
add_env:
- "NODE_PATH=${WIGWAG_DIR}"
exec_cmd: "node" # will use PATH if not absolute path (as per execvp())
exec_pre_args:
- "--max-executable-size=96"
- "--max-old-space-size=128"
- "--max-semi-space-size=1"
- "deviceJSContainer"
# exec_post_args:
- name: "node_process"
cgroup: # will implement later
mem_limit: 10000000
exec_cmd: "node" # {{CMD}} will be filled in by the exec_cmd field below
exec_pre_args:
- "--max-executable-size=96"
- "--max-old-space-size=128"
exec_post_args:
- "whatev"
# uses_ok_string: true
- name: "node_process2"
cgroup: # will implement later
mem_limit: 10000000
exec_cmd: "node"
exec_pre_args:
- "--max-executable-size=96"
- "--max-old-space-size=128"
exec_post_args:
- "whatev2"
jobs:
# - job: "test_ok_string"
# exec_cmd: "{{cwd}}/auxtests/test-node-wait10s.js"
# container_template: "node_process"
# - job: "test_ok_string2
# exec_cmd: "{{cwd}}/auxtests/test-node.js"
# container_template: "node_process2"
# depends_on:
# - "test_ok_string"
- job: "test_ok_read_message"
exec_cmd: "{{cwd}}/auxtests/test-node-read-message-stdin.js"
container_template: "node_process"
message: "birds ENDCONFIG"
exec_args:
- "Apples"
- job: "test_ok_read_message2"
exec_cmd: "{{cwd}}/auxtests/test-node-read-message-stdin.js"
container_template: "node_process"
message: "monkeys ENDCONFIG"
exec_args:
- "{{SOMEFRUIT}}-like"
- job: "test_ok_read_message3"
exec_cmd: "{{cwd}}/auxtests/test-node-read-message-stdin.js"
container_template: "node_process"
message: "monkeys ENDCONFIG"
exec_args:
- "{{FRUITART}}"
# - job: "test_ok_string_exit"
# exec_cmd: "{{cwd}}/auxtests/test-node-exit.js"
# container_template: "node_process"
# - job: "devicejs"
# exec_cmd: "node {{CMD}}" # {{CMD}} will be filled in by the exec_cmd field below
# exec_args:
# - "--max-executable-size=96"
# - "--max-old-space-size=128"
# - "--max-semi-space-size=1"
# - "devicejs"
# - job: "core_modules"
# container_template: "deviceJS_process"
# message: |
# "path" : "${thisdir}/../AppServer",
# "config": {}
# },
# {
# "path" : "${thisdir}/../APIProxy",
# "config": {}
# },
# {
# "path" : "${thisdir}/../core-lighting",
# "config": {}
# }
# # {
# # "path" : "${thisdir}/../UPnP",
# # "config": {}
# # },
# restart: true
# restart_limit: 5000
# restart_pause: 100 # 100 seconds between restarts
# - job: "support_tunnel"
# depends_on: # these services must be running first
# - "devicejs"
# # - "core_modules"
# restart_on_dependency_fail: true # kill the process and restart it if it's dependencies fail
# no_autostart: false # don't start it when maestro starts. But the job is available for start
# container_template: "node_process"
# exec_cmd: "/wigwag/support.js"
# exec_args:
# - "some arg"
#
# - tty: sometty