-
Notifications
You must be signed in to change notification settings - Fork 6
/
modd.conf
316 lines (300 loc) · 14.5 KB
/
modd.conf
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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
# Copyright © VNG Realisatie 2020
# Licensed under the EUPL
#
# This file contains startup commands for the backends of 4 parts of the NLX landscape:
#
# - Shared
# - Organization-A (Gemeente Stijns)
# - Organization-B (RvRD)
# - Organization-C (Vergunningsoftware BV)
#
**/*.go **/*.html !**/*_test.go {
############
## Shared ##
############
daemon +sigterm: "
# [S] directory-api
go run \
./directory-api serve \
--listen-address 0.0.0.0:7904 \
--listen-address-plain 0.0.0.0:7905 \
--postgres-dsn 'postgresql://postgres:postgres\@127.0.0.1:5432/nlx?sslmode=disable' \
--tls-nlx-root-cert pki/external/ca/root.pem \
--tls-org-cert pki/external/certs/directory/directory.shared.nlx.local/cert.pem \
--tls-org-key pki/external/certs/directory/directory.shared.nlx.local/key.pem \
--terms-of-service-url https://example.com \
--log-type local \
--log-level warn
"
daemon +sigterm: "
# [S] directory-monitor
go run \
./directory-monitor/cmd/nlx-directory-monitor \
--postgres-dsn 'postgresql://postgres:postgres\@127.0.0.1:5432/nlx?sslmode=disable' \
--tls-nlx-root-cert pki/external/ca/root.pem \
--tls-monitor-cert pki/external/certs/directory/directory.shared.nlx.local/cert.pem \
--tls-monitor-key pki/external/certs/directory/directory.shared.nlx.local/key.pem \
--ttl-offline-service 30 \
--log-type local \
--log-level warn
"
daemon +sigterm: "
# [S] directory-ui
go run \
./directory-ui serve \
--listen-address 0.0.0.0:8080 \
--environment demo \
--static-path directory-ui/ports/ui/assets/dist \
--tls-nlx-root-cert pki/external/ca/root.pem \
--tls-org-cert pki/external/certs/directory/directory.shared.nlx.local/cert.pem \
--tls-org-key pki/external/certs/directory/directory.shared.nlx.local/key.pem \
--log-type local \
--log-level warn
"
######################################
## Organization A (Gemeente Stijns) ##
######################################
daemon +sigterm: "
# [A] management-api
[[ -z ${TXLOG_A} ]] && LOG_DB='' || LOG_DB='--transaction-log-dsn postgresql://postgres:postgres\@127.0.0.1:5432/nlx_txlog_a?sslmode=disable'
go run \
./management-api serve \
--config-listen-address 0.0.0.0:7911 \
--listen-address 0.0.0.0:7912 \
--postgres-dsn 'postgresql://postgres:postgres\@127.0.0.1:5432/nlx_management_org_a?sslmode=disable&connect_timeout=2' \
${LOG_DB} \
--directory-address directory-api.shared.nlx.local:443 \
--txlog-address txlog-api.organization-a.nlx.local:443 \
--secret-key V4KMJC8MPL4fe9jtdCAX \
--oidc-client-id nlx-management-a \
--oidc-client-secret ZXhhbXBsZS1hcHAtc2VjcmV0 \
--oidc-discovery-url http://dex.shared.nlx.local:5556 \
--oidc-redirect-url http://management.organization-a.nlx.local:3011/oidc/callback \
--session-cookie-secure=false \
--tls-nlx-root-cert pki/external/ca/root.pem \
--tls-org-cert pki/external/certs/organization-a/inway.organization-a.nlx.local/cert.pem \
--tls-org-key pki/external/certs/organization-a/inway.organization-a.nlx.local/key.pem \
--tls-root-cert pki/internal/organization-a/ca/root.pem \
--tls-cert pki/internal/organization-a/certs/management-api/cert.pem \
--tls-key pki/internal/organization-a/certs/management-api/key.pem \
--log-type local \
--log-level warn
"
# version.BuildVersion=v999.999.999 is needed because that way we make sure that the component acts as the latest version available
daemon +sigterm: "
# [A] inway
[[ -z ${TXLOG_A} ]] && LOG_DB='--disable-logdb' || LOG_DB='--tx-log-api-address txlog-api.organization-a.nlx.local:7919'
go run \
-ldflags=\"-X 'go.nlx.io/nlx/common/version.BuildSourceHash=$GIT_COMMIT_HASH' -X 'go.nlx.io/nlx/common/version.BuildVersion=v999.999.999'\" \
./inway/cmd/nlx-inway \
--listen-address 0.0.0.0:7913 \
--listen-address-management-api-proxy 0.0.0.0:7914 \
--monitoring-address 0.0.0.0:7915 \
--self-address inway.organization-a.nlx.local:443 \
--management-api-proxy-address management-proxy.organization-a.nlx.local:8443 \
--name Inway-01 \
--management-api-address management-api.organization-a.nlx.local:443 \
--directory-address directory-api.shared.nlx.local:443 \
${LOG_DB} \
--tls-nlx-root-cert pki/external/ca/root.pem \
--tls-org-cert pki/external/certs/organization-a/inway.organization-a.nlx.local/cert.pem \
--tls-org-key pki/external/certs/organization-a/inway.organization-a.nlx.local/key.pem \
--tls-root-cert pki/internal/organization-a/ca/root.pem \
--tls-cert pki/internal/organization-a/certs/inway/cert.pem \
--tls-key pki/internal/organization-a/certs/inway/key.pem \
--log-type local \
--log-level warn
"
daemon +sigterm: "
# [A] outway
[[ -z ${TXLOG_A} ]] && LOG_DB='--disable-logdb' || LOG_DB='--tx-log-api-address txlog-api.organization-a.nlx.local:7919'
go run \
./outway/cmd/nlx-outway \
--name gemeente-stijns-nlx-outway \
--self-address-api outway.organization-a.nlx.local:443 \
--listen-address 0.0.0.0:7917 \
--listen-address-api 0.0.0.0:7916 \
--monitoring-address 0.0.0.0:7918 \
${LOG_DB} \
--management-api-address management-api.organization-a.nlx.local:443 \
--directory-address directory-api.shared.nlx.local:443 \
--tls-nlx-root-cert pki/external/ca/root.pem \
--tls-org-cert pki/external/certs/organization-a/inway.organization-a.nlx.local/cert.pem \
--tls-org-key pki/external/certs/organization-a/inway.organization-a.nlx.local/key.pem \
--tls-root-cert pki/internal/organization-a/ca/root.pem \
--tls-cert pki/internal/organization-a/certs/outway/cert.pem \
--tls-key pki/internal/organization-a/certs/outway/key.pem \
--log-type local \
--log-level warn
"
daemon +sigterm: "
# [A] outway 2
[[ -z ${TXLOG_A} ]] && LOG_DB='--disable-logdb' || LOG_DB='--postgres-dsn postgresql://postgres:postgres\@127.0.0.1:5432/nlx_txlog_a?sslmode=disable'
go run \
./outway/cmd/nlx-outway \
--name gemeente-stijns-nlx-outway-2 \
--self-address-api outway-2.organization-a.nlx.local:443 \
--listen-address 0.0.0.0:7947 \
--listen-address-api 0.0.0.0:7946 \
--monitoring-address 0.0.0.0:7948 \
${LOG_DB} \
--management-api-address management-api.organization-a.nlx.local:443 \
--directory-address directory-api.shared.nlx.local:443 \
--tls-nlx-root-cert pki/external/ca/root.pem \
--tls-org-cert pki/external/certs/organization-a/outway-2.organization-a.nlx.local/cert.pem \
--tls-org-key pki/external/certs/organization-a/outway-2.organization-a.nlx.local/key.pem \
--tls-root-cert pki/internal/organization-a/ca/root.pem \
--tls-cert pki/internal/organization-a/certs/outway-2/cert.pem \
--tls-key pki/internal/organization-a/certs/outway-2/key.pem \
--log-type local \
--log-level warn
"
daemon +sigterm: "
# [A] txlog-api
go run \
./txlog-api serve \
--listen-address 0.0.0.0:7919 \
--listen-address-plain 0.0.0.0:7920 \
--postgres-dsn 'postgresql://postgres:postgres\@127.0.0.1:5432/nlx_txlog_a?sslmode=disable&connect_timeout=2' \
--tls-root-cert pki/internal/organization-a/ca/root.pem \
--tls-cert pki/internal/organization-a/certs/txlog-api/cert.pem \
--tls-key pki/internal/organization-a/certs/txlog-api/key.pem \
--log-level warn
"
daemon +sigterm: "
# [A] management-ui-fsc
go run \
./management-ui-fsc serve \
--listen-address 0.0.0.0:3012 \
--static-path management-ui-fsc/ports/ui/assets/dist \
--tls-nlx-root-cert pki/external/ca/root.pem \
--tls-org-cert pki/external/certs/directory/directory.shared.nlx.local/cert.pem \
--tls-org-key pki/external/certs/directory/directory.shared.nlx.local/key.pem \
--log-type local \
--log-level warn
"
###########################
## Organization B (RvRD) ##
###########################
daemon +sigterm: "
# [B] management-api
[[ -z ${TXLOG_B} ]] && LOG_DB='' || LOG_DB='--transaction-log-dsn postgresql://postgres:postgres\@127.0.0.1:5432/nlx_txlog_b?sslmode=disable'
go run \
./management-api serve \
--config-listen-address 0.0.0.0:7921 \
--listen-address 0.0.0.0:7922 \
--postgres-dsn 'postgresql://postgres:postgres\@127.0.0.1:5432/nlx_management_org_b?sslmode=disable' \
${LOG_DB} \
--directory-address directory-api.shared.nlx.local:443 \
--txlog-address txlog-api.organization-b.nlx.local:443 \
--enable-basic-auth=true \
--secret-key not-used-see-basic-auth-flag \
--tls-nlx-root-cert pki/external/ca/root.pem \
--tls-org-cert pki/external/certs/organization-b/inway.organization-b.nlx.local/cert.pem \
--tls-org-key pki/external/certs/organization-b/inway.organization-b.nlx.local/key.pem \
--tls-root-cert pki/internal/organization-b/ca/root.pem \
--tls-cert pki/internal/organization-b/certs/management-api/cert.pem \
--tls-key pki/internal/organization-b/certs/management-api/key.pem \
--log-type local \
--log-level warn
"
# version.BuildVersion=v999.999.999 is needed because that way we make sure that the component acts as the latest version available
daemon +sigterm: "
# [B] inway
[[ -z ${TXLOG_B} ]] && LOG_DB='--disable-logdb' || LOG_DB='--postgres-dsn postgresql://postgres:postgres\@127.0.0.1:5432/nlx_txlog_b?sslmode=disable'
go run \
-ldflags=\"-X 'go.nlx.io/nlx/common/version.BuildSourceHash=$GIT_COMMIT_HASH' -X 'go.nlx.io/nlx/common/version.BuildVersion=v999.999.999'\" \
./inway/cmd/nlx-inway \
--listen-address 0.0.0.0:7923 \
--listen-address-management-api-proxy 0.0.0.0:7926 \
--monitoring-address 0.0.0.0:7925 \
--self-address inway.organization-b.nlx.local:443 \
--management-api-proxy-address management-proxy.organization-b.nlx.local:8443 \
--name Inway-01 \
--management-api-address management-api.organization-b.nlx.local:443 \
--directory-address directory-api.shared.nlx.local:443 \
${LOG_DB} \
--tls-nlx-root-cert pki/external/ca/root.pem \
--tls-org-cert pki/external/certs/organization-b/inway.organization-b.nlx.local/cert.pem \
--tls-org-key pki/external/certs/organization-b/inway.organization-b.nlx.local/key.pem \
--tls-root-cert pki/internal/organization-b/ca/root.pem \
--tls-cert pki/internal/organization-b/certs/inway/cert.pem \
--tls-key pki/internal/organization-b/certs/inway/key.pem \
--log-type local \
--log-level warn \
--authorization-service-address https://auth.organization-b.nlx.local:8181/v1/data/httpapi/inway/allow \
--authorization-root-ca pki/internal/organization-b/ca/root.pem
"
daemon +sigterm: "
# [B] txlog-api
go run \
./txlog-api serve \
--listen-address 0.0.0.0:7929 \
--listen-address-plain 0.0.0.0:7930 \
--postgres-dsn 'postgresql://postgres:postgres\@127.0.0.1:5432/nlx_txlog_b?sslmode=disable&connect_timeout=2' \
--tls-root-cert pki/internal/organization-b/ca/root.pem \
--tls-cert pki/internal/organization-b/certs/txlog-api/cert.pem \
--tls-key pki/internal/organization-b/certs/txlog-api/key.pem \
--log-level warn
"
############################################
## Organization C (Vergunningsoftware BV) ##
############################################
daemon +sigterm: "
# [C] management-api
[[ -z ${TXLOG_C} ]] && LOG_DB='' || LOG_DB='--transaction-log-dsn postgresql://postgres:postgres\@127.0.0.1:5432/nlx_txlog_c?sslmode=disable'
go run \
./management-api serve \
--config-listen-address 0.0.0.0:7931 \
--listen-address 0.0.0.0:7932 \
--postgres-dsn 'postgresql://postgres:postgres\@127.0.0.1:5432/nlx_management_org_c?sslmode=disable&connect_timeout=2' \
${LOG_DB} \
--directory-address directory-api.shared.nlx.local:443 \
--txlog-address txlog-api.organization-c.nlx.local:443 \
--enable-basic-auth=true \
--tls-nlx-root-cert pki/external/ca/root.pem \
--tls-org-cert pki/external/certs/organization-c/inway.organization-c.nlx.local/cert.pem \
--tls-org-key pki/external/certs/organization-c/inway.organization-c.nlx.local/key.pem \
--tls-root-cert pki/internal/organization-c/ca/root.pem \
--tls-cert pki/internal/organization-c/certs/management-api/cert.pem \
--tls-key pki/internal/organization-c/certs/management-api/key.pem \
--log-type local \
--log-level warn
"
daemon +sigterm: "
# [C] outway
[[ -z ${TXLOG_C} ]] && LOG_DB='--disable-logdb' || LOG_DB='--postgres-dsn postgresql://postgres:postgres\@127.0.0.1:5432/nlx_txlog_c?sslmode=disable'
go run \
./outway/cmd/nlx-outway \
--name vergunningsoftware-bv-nlx-outway \
--self-address-api outway.organization-c.nlx.local:443 \
--listen-address 0.0.0.0:7937 \
--listen-address-api 0.0.0.0:7936 \
--monitoring-address 0.0.0.0:7938 \
${LOG_DB} \
--management-api-address management-api.organization-c.nlx.local:443 \
--directory-address directory-api.shared.nlx.local:443 \
--tls-nlx-root-cert pki/external/ca/root.pem \
--tls-org-cert pki/external/certs/organization-c/inway.organization-c.nlx.local/cert.pem \
--tls-org-key pki/external/certs/organization-c/inway.organization-c.nlx.local/key.pem \
--tls-root-cert pki/internal/organization-c/ca/root.pem \
--tls-cert pki/internal/organization-c/certs/outway/cert.pem \
--tls-key pki/internal/organization-c/certs/outway/key.pem \
--log-type local \
--log-level warn \
--authorization-service-address https://auth.organization-c.nlx.local:8182/v1/data/httpapi/outway/allow \
--authorization-root-ca pki/internal/organization-c/ca/root.pem
"
daemon +sigterm: "
# [C] txlog-api
go run \
./txlog-api serve \
--listen-address 0.0.0.0:7939 \
--listen-address-plain 0.0.0.0:7940 \
--postgres-dsn 'postgresql://postgres:postgres\@127.0.0.1:5432/nlx_txlog_c?sslmode=disable&connect_timeout=2' \
--tls-root-cert pki/internal/organization-c/ca/root.pem \
--tls-cert pki/internal/organization-c/certs/txlog-api/cert.pem \
--tls-key pki/internal/organization-c/certs/txlog-api/key.pem \
--log-level warn
"
}