-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.env.prod.example
162 lines (123 loc) · 5.53 KB
/
.env.prod.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
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
# ------------------------------ #
# SECTION 1 - USER CONFIGURATION
# ------------------------------ #
# Please feel free to update any and all settings in SECTION 1.
# How often should we check database for RSS feeds that need updating?
# Default: 60
# Unit: seconds
RSS_CHECK_INTERVAL_SECONDS="60"
# --------------------------------------------------------------------------- #
# --------------------------------------------------------------------------- #
# --------------------------------------------------------------------------- #
# --------------------------------------------------------------------------- #
# ------------------------------------- #
# SECTION 2 - APPLICATION CONFIGURATION
# ------------------------------------- #
# Usually, you don't need to change these.
# However, if you need to change some passwords around
# for security reasons, or you'd like to use different
# Message Queue topic names etc., this section is the place to do so.
# ------------------------- #
# POSTGRESQL - the database
# ------------------------- #
# application database name
POSTGRESQL_DB_NAME="dreamcatcher"
# database administrative user
POSTGRESQL_DB_USER="dreamcatcher_user"
# database administrative password
POSTGRESQL_DB_PASSWORD="example123ABCD"
# database full connection URI that is used while building Docker containers
# ... apologies for forcing you to write these here again but this ENV file does not support re-using values previously set
POSTGRESQL_DB_CONNECTION_URI="postgresql://dreamcatcher_user:example123ABCD@db_server:5432/dreamcatcher?schema=public"
# repmgr password - this is for the replication user that handles synchronizing data between multiple backup database servers
REPMGR_PASSWORD="strongP4sSW0rD!"
# ----------------- #
# RSS FEEDS PARSING
# ----------------- #
# Maximum of individual RSS feeds that can be parsed and processed at once.
RSS_MAX_FETCH_FEEDS_IN_PARALLEL = 25
# ----------------- #
# RSS LINK FETCHING
# ----------------- #
# Maximum of individual RSS links that can be fetched and processed at once.
RSS_MAX_FETCH_LINKS_IN_PARALLEL = 25
# Maximum retries for a failed individual RSS link fetch.
RSS_MAX_FETCH_LINK_FAIL_RETRIES = 5
# --------------- #
# RSS LINK SAVING
# --------------- #
# Maximum number of individual RSS links that can be saved into the DB at once.
RSS_MAX_LINKS_SAVE_IN_PARALLEL = 100
# ---------------------- #
# COMMUNICATION CHANNELS
# ---------------------- #
# Redis telemetry cross-service comm channel
TELEMETRY_CHANNEL_NAME="telemetry"
# Kafka new RSS links topic
NEW_LINKS_CHANNEL_NAME="new_rss_links"
# Kafka new RSS links that were stored in the database topic
SAVED_LINKS_CHANNEL_NAME="new_saved_rss_links"
# Kafka new RSS feeds to fetch topic
FEED_FETCH_CHANNEL_NAME="fetch_feed"
# Kafka logs topic
LOGS_CHANNEL_NAME="logs"
# Kafka channel for invalid RSS urls that need fixing
RSS_INVALID_URLS_CHANEL_NAME="rss_url_invalid"
# Set (key) name in Redis for RSS feeds to parse queue
RSS_FETCH_QUEUE_SET_NAME = "rss_queue_backup"
# Set (key) name in Redis for RSS Links to fetch queue
RSS_LINKS_FETCH_QUEUE_SET_NAME = "rss_links_queue_backup"
# Set (key) name in Redis for RSS Links to save queue
RSS_LINKS_SAVE_QUEUE_SET_NAME = "rss_links_save_queue_backup"
# --------------------------------------------------------------------------- #
# --------------------------------------------------------------------------- #
# --------------------------------------------------------------------------- #
# --------------------------------------------------------------------------- #
# -------------------------------- #
# SECTION 3 - DOCKER CONFIGURATION
# -------------------------------- #
# You shouldn't be touching these unless you are a DevOps person
# responsible for running the Docker containerization.
# These settings are used to identify running services, their hostnames,
# ports, nodes etc.
# You can very well break the application if you change something here randomly.
# ----- #
# REDIS
# ----- #
# Redis server name (or in production, a comma-separated list of Redis sentinel hostnames with their ports -> s1:5555,s2:1234)
KEY_STORE_NODES="redis-sentinel-0:26379,redis-sentinel-1:26379,redis-sentinel-2:26379,redis-sentinel-3:26379,redis-sentinel-4:26379"
# ----- #
# KAFKA
# ----- #
# Kafka nodes - comma-separated values of all Kafka nodes and their ports (DEV only contains a single node here)
MQ_NODES="kafka-0:9092,kafka-1:9092,kafka-2:9092"
# Ignore new partitioner warnings, since we're not about to use the old one anyway.
KAFKAJS_NO_PARTITIONER_WARNING=1
# ----------------- #
# TELEMETRY TRACING
# ----------------- #
# name of the Jaeger server responsible to log application traces
OTEL_EXPORTER_JAEGER_AGENT_HOST="trace_logger"
# --------------------------------------------------------------------------- #
# --------------------------------------------------------------------------- #
# --------------------------------------------------------------------------- #
# --------------------------------------------------------------------------- #
# ------------------------- #
# SECTION 4 - DO NOT CHANGE
# ------------------------- #
# This section contains static environment variables
# used by the system to operate correctly.
# ------------- #
# ELASTICSEARCH
# ------------- #
# Version of Elastic products
ES_STACK_VERSION=7.17.12
# Set the cluster name
ES_CLUSTER_NAME=docker-cluster
# Port to expose Elasticsearch HTTP API to the host
ES_PORT=9200
ES_PORT2=9201
ES_PORT3=9202
#ES_PORT=127.0.0.1:9200
# Increase or decrease based on the available host memory (in bytes)
ES_MEM_LIMIT=1073741824