@@ -18,7 +18,15 @@ Let's get OPAL running! You'll need to set a few environment variables that tell
18
18
export OPAL_POLICY_REPO_URL=https://github.com/your-org/policy-repo.git
19
19
20
20
# Where clients get initial data
21
- export OPAL_DATA_CONFIG_SOURCES=' {"config":{"entries":[{"url":"http://localhost:7002/policy-data","topics":["policy_data"],"dst_path":"/static"}]}}'
21
+ export OPAL_DATA_CONFIG_SOURCES=' {
22
+ "config": {
23
+ "entries": [{
24
+ "url": "http://localhost:7002/policy-data",
25
+ "topics": ["policy_data"],
26
+ "dst_path": "/static"
27
+ }]
28
+ }
29
+ }'
22
30
23
31
# Broadcast channel for scaling (use Redis or PostgreSQL)
24
32
export OPAL_BROADCAST_URI=postgres://postgres:postgres@localhost:5432/postgres
@@ -774,7 +782,17 @@ Enforce webhook events only from a specific branch.
774
782
775
783
#### OPAL_POLICY_REPO_WEBHOOK_PARAMS
776
784
777
- Default: ` {"secret_header_name": "x-hub-signature-256", "secret_type": "signature", "secret_parsing_regex": "sha256=(.*)", "event_header_name": "X-GitHub-Event", "event_request_key": null, "push_event_value": "push"} `
785
+ Default:
786
+ ``` json
787
+ {
788
+ "secret_header_name" : " x-hub-signature-256" ,
789
+ "secret_type" : " signature" ,
790
+ "secret_parsing_regex" : " sha256=(.*)" ,
791
+ "event_header_name" : " X-GitHub-Event" ,
792
+ "event_request_key" : null ,
793
+ "push_event_value" : " push"
794
+ }
795
+ ```
778
796
779
797
Additional parameters for webhook processing.
780
798
@@ -866,7 +884,17 @@ Default route for data callbacks (exists as a sane default in case the user did
866
884
867
885
#### OPAL_DATA_CONFIG_SOURCES
868
886
869
- Default: ` {"config": {"entries": [{"url": "http://localhost:7002/policy-data", "topics": ["data"]}]}} `
887
+ Default:
888
+ ``` json
889
+ {
890
+ "config" : {
891
+ "entries" : [{
892
+ "url" : " http://localhost:7002/policy-data" ,
893
+ "topics" : [" data" ]
894
+ }]
895
+ }
896
+ }
897
+ ```
870
898
871
899
Configuration of data sources by topics.
872
900
@@ -1186,7 +1214,15 @@ For more information, see [tracking a Git repository](/tutorials/track_a_git_rep
1186
1214
1187
1215
#### OPAL_POLICY_UPDATER_CONN_RETRY
1188
1216
1189
- Default: ` {"wait_strategy": "random_exponential", "max_wait": 10, "attempts": 5, "wait_time": 1} `
1217
+ Default:
1218
+ ``` json
1219
+ {
1220
+ "wait_strategy" : " random_exponential" ,
1221
+ "max_wait" : 10 ,
1222
+ "attempts" : 5 ,
1223
+ "wait_time" : 1
1224
+ }
1225
+ ```
1190
1226
1191
1227
Retry options when connecting to the policy source (e.g., the policy bundle server).
1192
1228
@@ -1230,7 +1266,16 @@ For more information, see [monitoring OPAL](/tutorials/monitoring_opal).
1230
1266
1231
1267
#### OPAL_DEFAULT_UPDATE_CALLBACK_CONFIG
1232
1268
1233
- Default: ` {"method": "POST", "headers": {"content-type": "application/json"}, "process_data": false} `
1269
+ Default:
1270
+ ``` json
1271
+ {
1272
+ "method" : " POST" ,
1273
+ "headers" : {
1274
+ "content-type" : " application/json"
1275
+ },
1276
+ "process_data" : false
1277
+ }
1278
+ ```
1234
1279
1235
1280
Default configuration for update callbacks.
1236
1281
@@ -1246,7 +1291,15 @@ For more information, see [monitoring OPAL](/tutorials/monitoring_opal).
1246
1291
1247
1292
#### OPAL_DATA_UPDATER_CONN_RETRY
1248
1293
1249
- Default: ` {"wait_strategy": "random_exponential", "max_wait": 10, "attempts": 5, "wait_time": 1} `
1294
+ Default:
1295
+ ``` json
1296
+ {
1297
+ "wait_strategy" : " random_exponential" ,
1298
+ "max_wait" : 10 ,
1299
+ "attempts" : 5 ,
1300
+ "wait_time" : 1
1301
+ }
1302
+ ```
1250
1303
1251
1304
Retry options when connecting to the base data source (e.g., an external API server which returns data snapshot).
1252
1305
0 commit comments