File tree 3 files changed +6
-4
lines changed
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ vulnerability-db-consumer -c _resources/config/local.toml
16
16
## How to run the Vulnerability DB in development mode
17
17
18
18
You can test the Vulnerability DB Consumer locally in your machine.
19
- The commands bellow will launch the necessary components required by the
19
+ The commands bellow will launch the necessary components required by the
20
20
application.
21
21
22
22
``` bash
@@ -80,6 +80,7 @@ Those are the variables you have to use:
80
80
| PG_CA_B64| A base64 encoded CA certificate||
81
81
| SQS_NUMBER_OF_PROCESSORS| Number of concurrent SQS processors| Default: 10|
82
82
| SQS_QUEUE_ARN| Checks queueu ARN| arn:aws:sqs:xxx:123456789012: yyy |
83
+ | SQS_VISIBILITY_TIMEOUT| In seconds| 1800|
83
84
| SNS_TOPIC_ARN| ARN of topic to publish new vulnerabilities| arn:aws:sns:xxx:123456789012: yyy |
84
85
| RESULTS_URL| External vulcan-results URL| https://results.vulcan.com |
85
86
| RESULTS_INTERNAL_URL| Internal vulcan-results URL| http://vulcan-results |
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ name = "$PG_NAME"
17
17
[sqs ]
18
18
number_of_processors = $SQS_NUMBER_OF_PROCESSORS
19
19
wait_time = 20
20
- timeout = 600
20
+ timeout = $ SQS_VISIBILITY_TIMEOUT
21
21
queue_arn = " $SQS_QUEUE_ARN"
22
22
endpoint = " $AWS_SQS_ENDPOINT"
23
23
Original file line number Diff line number Diff line change 4
4
5
5
set -e
6
6
7
- export PG_SSLMODE=${PG_SSLMODE:- prefer}
8
- export SQS_NUMBER_OF_PROCESSORS=${SQS_NUMBER_OF_PROCESSORS:- 10}
7
+ export PG_SSLMODE=" ${PG_SSLMODE:- prefer} "
8
+ export SQS_NUMBER_OF_PROCESSORS=" ${SQS_NUMBER_OF_PROCESSORS:- 10} "
9
+ export SQS_VISIBILITY_TIMEOUT=" ${SQS_VISIBILITY_TIMEOUT:- 1800} "
9
10
10
11
# Apply env variables
11
12
envsubst < config.toml > run.toml
You can’t perform that action at this time.
0 commit comments