forked from checkmarble/marble
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
116 lines (90 loc) · 3.63 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
#############
# SHARED ENV VARIABLES
#############
# required if running locally with MARBLE_APP_HOST=localhost:XXXX (some features will be broken if running with localhost and ENV=production)
ENV=development
# Firebase options
# The distinction between client and server is necessary when running in docker-compose because
# the backend image does not have access to localhost, while the client (browser) does not know
# the hostname of the backend. In a production environment, both can be left empty
FIREBASE_AUTH_EMULATOR_HOST_CLIENT=localhost:9099
FIREBASE_AUTH_EMULATOR_HOST_SERVER=firebase-auth:9099
FIREBASE_AUTH_EMULATOR_PORT=9099
# Front end host, for CORS settings & links to decisions
MARBLE_APP_HOST=localhost:3000
# Used:
# - by the firebase sdk to validate the id tokens
# - by the opentelemetry tracing agent to send traces to the collector
# Leave the "test-project" value if you are using the firebase emulator
GOOGLE_CLOUD_PROJECT=test-project
SENTRY_DSN=
#############
# BACKEND ENV VARIABLES
#############
# port the docker container listens on on host side
HOST_API_PORT=8080
# port the servers listens on
API_PORT=8080
# input RSA PRIVATE KEY for token signing (or a new one will be generated at every server start)
AUTHENTICATION_JWT_SIGNING_KEY=
# Enable to activate GCP tracing
# If activated, you MUST have GCP application default credentials set up - see https://cloud.google.com/trace/docs/setup/go-ot
# Will send error logs (but the app will still run) if an unexisting project is specified in GOOGLE_CLOUD_PROJECT or
# if the runner does not have the correct permissions to use tracing on the project
ENABLE_GCP_TRACING=false
# 'liveness' (only log liveness requests) || 'all' (log all requests) || 'none' for no request logs
REQUEST_LOGGING_LEVEL=all
# 'json' || 'text'
LOGGING_FORMAT=text
# Env variables for the postgresql database
PG_HOSTNAME=db
PG_PORT=54321
PG_PASSWORD=marble
# configure the document storage backend with optional fake backends
GCS_INGESTION_BUCKET="data-ingestion-bucket"
GCS_CASE_MANAGER_BUCKET="case-manager-bucket"
FAKE_GCS=true
# Configure the AWS S3 backend for sending decision files
FAKE_AWS_S3=true
# The 3 below are required if FAKE_AWS_S3 is false
AWS_REGION=eu-west-3
AWS_ACCESS_KEY=
AWS_SECRET_KEY=
# Othe dependency configurations
SEGMENT_WRITE_KEY_BACKEND=UgkImFmHmBZAWh5fxIKBY3QtvlcBrhqQ
# Metabase configuration
METABASE_SITE_URL="https://your_subdomain.metabaseapp.com"
METABASE_JWT_SIGNING_KEY="dummy"
METABASE_GLOBAL_DASHBOARD_ID=123
# Used to create a first default admin user if no user exists
# Used to create an organization if no organization exists with this name
CREATE_ORG_NAME=Zorg
# Used to create a first organization admin if no user exists with this email
METABASE_SITE_URL="https://your_subdomain.metabaseapp.com"
METABASE_JWT_SIGNING_KEY="dummy"
METABASE_GLOBAL_DASHBOARD_ID=123
#############
# FRONT END ENV VARIABLES
#############
NODE_ENV=production
# port the docker container listens on on host side
HOST_APP_PORT=3000
# port the servers listens on
APP_PORT=3000
# replace me in a production environment
SESSION_SECRET=SESSION_SECRET
SESSION_MAX_AGE=43200
MARBLE_API_DOMAIN_CLIENT=http://localhost:8080
MARBLE_API_DOMAIN_SERVER=http://api:8080
MARBLE_APP_DOMAIN=http://localhost:3000
# if you make use of the auth emulator, you can leave the dummy values
FIREBASE_API_KEY=dummy
FIREBASE_AUTH_DOMAIN=dummy
FIREBASE_PROJECT_ID=dummy
FIREBASE_STORAGE_BUCKET=dummy
FIREBASE_MESSAGING_SENDER_ID=dummy
FIREBASE_APP_ID=dummy
# Othe dependency configurations
SEGMENT_WRITE_KEY_BACKEND=hC8qrY2OLhUpl1Xycw523tbuClxlQR6u