-
Notifications
You must be signed in to change notification settings - Fork 115
/
.env
188 lines (152 loc) · 5.83 KB
/
.env
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
COMPOSE_PROJECT_NAME=joystream
# We use a single postgres service for both the query node indexer and processor.
# The default `DB_*` environment variables point to query node processor's database.
# The DB_NAME env is overriden with INDEXER_DB_NAME in the indexer's service docker-compose config.
# When running other services, those values should be overriden by their local environment configs.
# Query node DB config:
INDEXER_DB_NAME=query_node_indexer
DB_NAME=query_node_processor
DB_USER=postgres
DB_PASS=postgres
# This value will not be used by query-node docker containers.
# When running query-node with docker these services will always use the db service
DB_HOST=localhost
DB_PORT=5432
DEBUG=index-builder:*
TYPEORM_LOGGING=error
## Indexer options
# Block height to start indexing from.
# Note, that if there are already some indexed events, this setting is ignored
BLOCK_HEIGHT=0
# Query node GraphQL server port
GRAPHQL_SERVER_PORT=8081
PROCESSOR_STATE_APP_PORT=8082
PROCESSOR_HOST=processor
# Query node playground endpoint
# Leave it blank if you want endpoint to be copied from browser's URL
GRAPHQL_PLAYGROUND_ENDPOINT=""
# Query node playground subscription endpoint - will be derived from GRAPHQL_PLAYGROUND_ENDPOINT
# when not set
# GRAPHQL_PLAYGROUND_SUBSCRIPTION_ENDPOINT=ws://localhost:8081/graphql
# URL for CDN serving QN Playground's JS/CSS files - set empty string for local file serving
GRAPHQL_PLAYGROUND_CDN_URL=""
# Hydra indexer gateway GraphQL server port
# Remember to change it in PROCESSOR_INDEXER_GATEWAY as well
HYDRA_INDEXER_GATEWAY_PORT=4000
# Default GraphQL server host. It is required during "query-node config:dev"
GRAPHQL_SERVER_HOST=localhost
# Websocket RPC endpoint containers will use.
JOYSTREAM_NODE_WS=ws://joystream-node:9944/
# Storage Squid (graphql-server) which colossus will use
COLOSSUS_STORAGE_SQUID_URL=http://squid-graphql-server:4352/graphql
# Storage Squid (graphql-server) which distributor will use
DISTRIBUTOR_STORAGE_SQUID_URL=http://squid-graphql-server:4352/graphql
# Indexer gateway used by processor. If you don't use the local indexer set this to a remote gateway
PROCESSOR_INDEXER_GATEWAY=http://hydra-indexer-gateway:4000/graphql
# State update endpoint used by prcessor (to send state updates)
STATE_UPDATE_ENDPOINT=http://graphql-server:8082/update-processor-state
# Colossus services identities
# Assuming hired lead has worker id 0
COLOSSUS_1_WORKER_ID=1
COLOSSUS_1_WORKER_URI=//testing//worker//Storage//1
COLOSSUS_1_TRANSACTOR_URI=//Colossus1
COLOSSUS_2_WORKER_ID=2
COLOSSUS_2_WORKER_URI=//testing//worker//Storage//2
COLOSSUS_2_TRANSACTOR_URI=//Colossus2
# Distributor node services identities
# Assuming hired lead has worker id 0
DISTRIBUTOR_1_WORKER_ID=1
DISTRIBUTOR_1_ACCOUNT_URI=//testing//worker//Distribution//1
DISTRIBUTOR_2_WORKER_ID=2
DISTRIBUTOR_2_ACCOUNT_URI=//testing//worker//Distribution//2
# Membership Faucet
INVITER_KEY=
# SendGrid API key
SENDGRID_API_KEY=
# Destination email address for failure alerts
ALERT_TO_EMAIL=
ALERT_FROM_EMAIL=
# HCaptcha secret API key
HCAPTCHA_SECRET=
BALANCE_CREDIT=300000000000
BALANCE_LOCKED=300000000000
# ====================================== ORION ======================================
# LOCAL DEV ENVIRONMENT
ORION_ENV=development
DEV_DISABLE_SAME_SITE=true
# Db config
ORION_DB_NAME=squid
ORION_DB_PASS=squid
DB_ADMIN_USER=admin
DB_ADMIN_PASS=admin
ORION_DB_PORT=5433
# archive configuration
ARCHIVE_DB_PORT=12345
ARCHIVE_GATEWAY_PORT=8888
WS_SOURCE=ws://joystream-node:9944
ARCHIVE_EXPLORER_PORT=4444
# Processor service prometheus port
PROCESSOR_PROMETHEUS_PORT=3337
# Graphql server port
GRAPHQL_API_PORT=4350
# Auth api port
AUTH_API_PORT=4074
APP_NAME=Gleev
SUPPORT_NO_CATEGORY_VIDEOS=true
SUPPORT_NEW_CATEGORIES=true
KILL_SWITCH_ON=false
# 10 seconds
VIDEO_VIEW_PER_USER_TIME_LIMIT=10
# Operator API secret
OPERATOR_SECRET=this-is-not-so-secret-change-it
# every 50 views video relevance score will be recalculated
VIDEO_RELEVANCE_VIEWS_TICK=50
# [
# newness (negative number of days since created) weight,
# views weight,
# comments weight,
# rections weights,
# [joystream creation weight, YT creation weight]
# ]
RELEVANCE_WEIGHTS="[1, 0.03, 0.3, 0.5, [7,3]]"
MAX_CACHED_ENTITIES=1000
APP_PRIVATE_KEY=this-is-not-so-secret-change-it
SESSION_EXPIRY_AFTER_INACTIVITY_MINUTES=60
SESSION_MAX_DURATION_HOURS=720
EMAIL_CONFIRMATION_ROUTE=http://localhost:4074/api/v1/confirm-email?token={token}
EMAIL_CONFIRMATION_TOKEN_EXPIRY_TIME_HOURS=24
EMAIL_CONFIRMATION_TOKEN_RATE_LIMIT=5
ACCOUNT_OWNERSHIP_PROOF_EXPIRY_TIME_SECONDS=300 # 5 minutes
COOKIE_SECRET=this-is-not-so-secret-change-it
TRUST_PROXY=uniquelocal
# Sendgrid API
ORION_SENDGRID_API_KEY=
# Debug settings
SQD_DEBUG=api:*
OPENAPI_PLAYGROUND=true
ORION_ARCHIVE_GATEWAY_URL=${CUSTOM_ARCHIVE_GATEWAY_URL:-http://squid-archive-gateway:8000/graphql}
# =====================================================================================
## Telemetry
# yes/no
TELEMETRY_ENABLED=no
# TELEMETRY_ENDPOINT=http://apm-server:8200
TELEMETRY_ENDPOINT=http://collector:4318
# joystream/node docker image tag
# We do not provide a default value - scripts that startup a joystream-node service
# Should be explicit about what version to use.
# JOYSTREAM_NODE_TAG=latest
# =====================================================================================
## Storage-Squid configuration
# Db config
SQUID_DB_HOST=squid_db
SQUID_DB_NAME=squid
SQUID_DB_PASS=squid
SQUID_DB_PORT=23332
# Processor service prometheus port
SQUID_PROCESSOR_PROMETHEUS_PORT=3338
# Graphql server port
SQUID_GQL_PORT=4352
# Archive gateway host (Should not be set in local development)
# For running a production storage-squid instance uncomment the following line (to use the subsquid hosted archive)
# SQUID_ARCHIVE_GATEWAY_URL=${CUSTOM_ARCHIVE_GATEWAY_URL:-https://v2.archive.subsquid.io/network/joystream}