-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlocal.env.example
More file actions
35 lines (29 loc) · 1.44 KB
/
local.env.example
File metadata and controls
35 lines (29 loc) · 1.44 KB
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
# For local development: kafka and postgres in a container, consumer and producer running locally -> can be used
# as is in `local.env`
# For Aiven Infrastructure: `make setup-infra-aiven` sets up stuff but you still have to edit the respective
# KAFKA_*/CONSUMER_POSTGRES_* settings in `aiven.env`
# changing this needs a restart of the local infra: make stop-infra-local
# Both local and Aiven infrastructure are setup to autocreate topics
KAFKA_TOPIC=checkweb
KAFKA_BOOTSTRAP_SERVER=localhost:9092
# If empty, will connect without ssl/auth
# Either a absolute path or relative to the src directory (if used with make run-aiven)!
# needs to contain service.cert, service.key, ca.pem files (download from kafka service in the UI)
KAFKA_CERT_PATH=
# How much time between pinging/scraping the URL
PRODUCER_INTERVAL_SECONDS=10
# Which website to scrape
PRODUCER_SCRAPE_URL=https://www.google.com
# the regex to match the content with.
# Danger: some chars might need escaping, e.g. / -> \/!
PRODUCER_SCRAPE_REGEX=<title>Google<\/title>
# <=0 means run forever
PRODUCER_MAX_LOOPS=10
# Changing any *_POSTGRES_* requires a restart of the local infra: make stop-infra-local
CONSUMER_POSTGRES_USER=checkweb
CONSUMER_POSTGRES_PASSWORD=password
CONSUMER_POSTGRES_DB=checkweb
CONSUMER_POSTGRES_HOST=localhost
CONSUMER_POSTGRES_PORT=5555
# If empty, will connect without ssl. For Aiven set to: require
CONSUMER_POSTGRES_SSL_MODE=