forked from orbiting/backends
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.example
211 lines (159 loc) · 4.65 KB
/
.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
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
# Commented envs are optional
# For further config options check the READMEs.
# The ENVs specified are required by at least 2 servers.
#############
# common
#############
# postgres url (shared between republik and publikator)
DATABASE_URL=postgres://postgres@localhost:5432/republik
# redis url, leave blank for default: 127.0.0.1:6379
#REDIS_URL=
# elasticsearch url, leave blank for default: localhost:9200
#ELASTIC_URL=
# url to republik-frontend
# used by
# - auth to construct token links
# - assets to proxy requests to the frontend
# - documents to construct absolute document links
# - republik for payment redirect urls
FRONTEND_BASE_URL=http://localhost:3010
#url to crowdfunding-admin
# used by
# - slack to send link to profiles to SLACK_CHANNEL_ADMIN
ADMIN_FRONTEND_BASE_URL=http://localhost:3003
# log requsts that take longer than the specified ms
#REQ_TIMEOUT=2000
# keep graphql responses open by sending whitespace each RES_KEEPALIVE_MS
# see packages/base/express/keepalive.js
#RES_KEEPALIVE=true
#
# default is 15s
#RES_KEEPALIVE_MS=
# default is 5min
#RES_KEEPALIVE_TIMEOUT_MS=
#############
# cluster
#############
# enable
#CLUSTER=true
# how many workers should be started
#WEB_CONCURRENCY=2
# max memory before killing and respawning server (assets only)
#WEB_MEMORY=512
#############
# payments
#############
CROWDFUNDING_NAME=LAUNCH
#############
# auth
#############
# express-session's secret
SESSION_SECRET=RANDOM
# activate basic auth on this API
# for assets: send basic auth to frontend (for /render and /frontend, leaks to phantomjscloud)
#BASIC_AUTH_USER=
#BASIC_AUTH_PASS=
# optional:
#BASIC_AUTH_REALM=
# enforce user to consent to policies when trying to authorize a session
# comma separated list of values
#ENFORCE_CONSENTS=PRIVACY
# NEVER DO THIS IN PROD
# signs in matching emails automatically
#AUTO_LOGIN_REGEX=^([a-zA-Z0-9._%+-]+)@test\.project-r\.construction$
#############
# mail
#############
# mails are plotted to stdout if set to false
SEND_MAILS=false
# Semi-colon separated regex patterns to allow emails send to.
# Use if you are well-versed with regular expressions.
# May conflict with SEND_MAILS_DOMAIN_FILTER
# Requires SEND_MAILS to be true
#SEND_MAILS_REGEX_FILTERS=^.+@republik\.ch$;^foobar@domain\.tld$
# If sending emails is enabled, catch-all emails generated and forward them to
# this email address instead.
# Tags attached for internal query and stats purposes
# see https://mandrill.zendesk.com/hc/en-us/articles/205582467-How-to-Use-Tags-in-Mandrill
SEND_MAILS_TAGS=dev,localhost
# required for mails to work, set SEND_MAILS to false for a quick start
#MANDRILL_API_KEY=
DEFAULT_MAIL_FROM_ADDRESS="[email protected]"
DEFAULT_MAIL_FROM_NAME="Republik"
# mailchimp
# used by
# - publikator to create campaigns and upload html
# - republik to set interests based on belongings of a user
#MAILCHIMP_URL=https://us9.api.mailchimp.com
#MAILCHIMP_API_KEY=
#############
# assets
#############
ASSETS_SERVER_BASE_URL=http://localhost:5020
# shared secret with which publikator-backend authenticates urls to assets-backend
# min 32bit
ASSETS_HMAC_KEY=RANDOM
# AWS secrets
# used by
# - republik to upload (profile) images
# - publikator to upload images on publish
AWS_REGION=eu-central-1
AWS_S3_BUCKET=
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
#############
# keyCDN
#############
# used to purge urls / tags on keyCDN
#KEYCDN_API_KEY=
#KEYCDN_ZONE_ID=
#KEYCDN_ZONE_URL=
#PURGE_PSK=
#############
# discussions
#############
# the secret to hash userIds in discussions
DISPLAY_AUTHOR_SECRET=RANDOM
#############
# github
#############
# log ratelimit every 15min to stdout
#GITHUB_LOG_RATELIMIT=true
# Limit GraphQL request rate
#GITHUB_GRAPHQL_RATELIMIT=true
# List of all potential GitHub organizations data my stem from (optional)
#GITHUB_ORGS=organization-one,organization-two
# checkout the README on how to get these
GITHUB_LOGIN=
GITHUB_APP_ID=
GITHUB_APP_KEY=
GITHUB_INSTALLATION_ID=
################
# Notifications
################
# notifications are plotted to stdout if set to false
#SEND_NOTIFICATIONS=true
#FIREBASE_PROJECT_ID=
#FIREBASE_CLIENT_EMAIL=
#FIREBASE_DATABASE_URL=
#FIREBASE_PRIVATE_KEY=
#APN_BUNDLE_ID=
#APN_TEAM_ID=
#APN_KEY_ID=
#APN_KEY=
#############
# dev
#############
# IP used by docker-compose-test-net.yml to use as
# the resolving address for *.republik.test
#LOCAL_IP=192.168.1.88
# enable schedulers:
#PUBLICATION_SCHEDULER=true
#ACCESS_SCHEDULER=true
#PREVIEW_SCHEDULER=true
#MEMBERSHIP_SCHEDULER=true
# Disable User related cache
#DISABLE_RESOLVER_USER_CACHE=true
# Include @orbiting/backend-modules-mail/express/render
MAIL_EXPRESS_RENDER=true