-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathwebapp_config.json
200 lines (200 loc) · 6.11 KB
/
webapp_config.json
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
{
"database_data": {
"LocalNode": {
"help": "Settings for PGSQL Database (data)",
"node": "LocalNode",
"user": "homer_user",
"pass": "homer_password",
"name": "homer_data",
"keepalive": true,
"host": "127.0.0.1"
}
},
"hep_relay": {
"help": "UDP socket to send HEP data on",
"host": "127.0.0.1",
"port": 9060
},
"database_config": {
"help": "Settings for PGSQL Database (settings)",
"node": "LocalConfig",
"user": "homer_user",
"pass": "homer_password",
"name": "homer_config",
"keepalive": true,
"host": "localhost"
},
"influxdb_config": {
"enable": true,
"help": "Settings for InfluxDB Database (optional)",
"user": "influx_user",
"pass": "influx_password",
"name": "homer_config",
"host": "http://127.0.0.1:8086",
"database": "homer",
"policy": "autogen"
},
"prometheus_config": {
"enable": true,
"help": "Settings for Prometheus Database (optional)",
"user": "admin",
"pass": "admin",
"host": "http://127.0.0.1:9090",
"api": "api/v1"
},
"swagger": {
"enable": true,
"api_json": "/usr/local/homer/etc/swagger.json",
"api_host": "127.0.0.1:9080"
},
"loki_config": {
"help": "Settings for LOKI Database (optional)",
"user": "admin",
"password": "admin",
"param_query": "query_range",
"regexp": false,
"host": "http://127.0.0.1:3100",
"template": "{job=\"heplify-server\"} |~ \"%callid%\"",
"external_url": "",
"api": "loki/api/v1",
"enable": true
},
"grafana_config": {
"help": "Settings for Grafana",
"host": "http://127.0.0.1:3000",
"path": "grafana",
"token": "",
"proxy_control": false,
"proxy_check": "simple",
"enable": true
},
"http_settings": {
"help": "Settings for the HOMER Webapp Server. If you have gzip_static = false, please be sure that your dist directory has uncompressed .js files",
"host": "0.0.0.0",
"port": 9080,
"root": "/usr/local/homer/dist",
"gzip": true,
"path": "/",
"gzip_static": true,
"debug": false
},
"transaction_settings": {
"deduplicate": {
"global": false
}
},
"api_settings": {
"enable_token_access": false,
"add_captid_to_resolve": false
},
"https_settings": {
"help": "SSL settings for homer-app",
"enable": false,
"host": "0.0.0.0",
"port": 443,
"min_tls_version": "1.2",
"use_mozilla_profile": true,
"cert": "/usr/local/homer/tls/cert.pem",
"key": "/usr/local/homer/tls/key.pem"
},
"system_settings": {
"help": "Settings for HOMER logs",
"logpath": "/usr/local/homer/log",
"logname": "homer-app.log",
"_loglevels": "can be: fatal, error, warn, info, debug, trace",
"loglevel": "error",
"logstdout": false
},
"dashboard_settings": {
"_comment": "Here you can define a customs dashboards home",
"dashboard_home": "/usr/local/homer/etc/dashboard_home.json"
},
"auth_settings": {
"_comment": "The type param can be internal, ldap, http_auth",
"type": "internal",
"_jwt_help": "Please generate own jwt secret using uuid or the flag generate-jwt-secret",
"jwt_secret": "",
"gravatar": false,
"auth_token_header": "Auth-Token",
"gravatar_url": "https://www.gravatar.com/avatar/%s.jpg",
"token_expire": 1200,
"user_groups": [
"admin",
"user",
"support"
]
},
"ldap_config": {
"base": "dc=example,dc=com",
"host": "ldap.example.com",
"port": 389,
"usessl": false,
"skiptls": true,
"binddn": "uid=readonlysuer,ou=People,dc=example,dc=com",
"bindpassword": "readonlypassword",
"userfilter": "(uid=%s)",
"groupfilter": "(memberUid=%s)",
"group_attributes": [
"cn",
"memberOf",
"GroupAttribute",
"distinguishedName",
"dn",
"member"
],
"admingroup": "admin",
"adminmode": true,
"usergroup": "HOMER_user",
"usermode": true,
"attributes": [
"dn",
"givenName",
"sn",
"mail",
"uid"
],
"skipverify": true,
"anonymous": false,
"userdn": "uid=%s,ou=People,dc=example,dc=com"
},
"http_auth": {
"url": "http://localhost:1323",
"skipverify": true
},
"oauth2": {
"enable": false,
"client_id": "1234565",
"client_secret": "FAKE",
"project_id": "Homer OAuth",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"redirect_uri": "http://localhost:80/api/v3/oauth2/auth",
"service_redirect": "/api/v3/oauth2/redirect",
"profile_url": "https://www.googleapis.com/oauth2/v1/userinfo",
"provider_name": "google",
"grant_type": "authorization_code",
"response_type": "code",
"auth_style": 1,
"use_pkce": true,
"user_token": "RandomURLSafeStringWithAMinimumLengthOf43Characters",
"scope": [
"email",
"openid",
"profile"
],
"gravatar": false,
"gravatar_url": "https://www.gravatar.com/avatar/%s.jpg",
"provider_image": ""
},
"decoder_shark": {
"_comment": "Here you can do packet decoding using tshark application. Please define uid, gid if you run the app under root",
"active": false,
"bin": "/usr/bin/tshark",
"protocols": [
"1_call",
"1_registration",
"1_default"
]
}
}