-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.example
36 lines (29 loc) · 955 Bytes
/
.env.example
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
# PostgreSQL
POSTGRES_USER=postgres
POSTGRES_PASSWORD=password
POSTGRES_DB=shortener
# Redis (not strictly required if defaults are fine, but you can define them)
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_DB=0
# URL Shortener Database URL
DATABASE_URL=postgresql://postgres:password@postgres:5432/shortener
# URL Shortener Redis URL
REDIS_URL=redis://redis:6379/0
# Kafka (if you have Kafka in your setup, otherwise remove these)
KAFKA_BOOTSTRAP_SERVERS=kafka:9092
URL_CREATED_TOPIC=url_created_events
KAFKA_AUTO_CREATE_TOPICS_ENABLE=true
# Logging
LOG_LEVEL=INFO
LOG_FORMAT=%(asctime)s [%(levelname)s] %(name)s: %(message)s
# Downloader/Shortener Specific Config (adjust as needed)
DOWNLOAD_TIMEOUT=30
METRICS_PORT=8000
IMAGE_STORAGE_PATH=/app/images
URLS_FILE_PATH=/app_input/image_urls.txt
BLOOM_EXPECTED_ITEMS=10000000
BLOOM_ERROR_RATE=0.0001
NUM_CONSUMERS=4
URL_CHUNK_SIZE=10000
BASE_URL=http://localhost:8001