-
Notifications
You must be signed in to change notification settings - Fork 1
/
.env.sample
50 lines (41 loc) · 2.64 KB
/
.env.sample
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
NODE_ENV=development
# authentication
EXPRESS_OPENSRP_ACCESS_TOKEN_URL=https://reveal-stage.smartregister.org/opensrp/oauth/token
EXPRESS_OPENSRP_AUTHORIZATION_URL=https://reveal-stage.smartregister.org/opensrp/oauth/authorize
EXPRESS_KEYCLOAK_LOGOUT_URL=https://keycloak-stage.smartregister.org/auth/realms/reveal-stage/protocol/openid-connect/logout
EXPRESS_OPENSRP_CALLBACK_URL=http://localhost:3000/oauth/callback/OpenSRP/
EXPRESS_OPENSRP_OAUTH_STATE=opensrp
EXPRESS_OPENSRP_CLIENT_ID=hunter2
EXPRESS_OPENSRP_CLIENT_SECRET=hunter2
EXPRESS_OPENSRP_SCOPES=openid,profile
EXPRESS_SERVER_LOGOUT_URL=http://localhost:3000/logout
# optional -> kills opensrp web server session, for instance not needed when auth server is keycloak
EXPRESS_OPENSRP_LOGOUT_URL=https://reveal-stage.smartregister.org/opensrp/logout.do
EXPRESS_SESSION_LOGIN_URL=/login
EXPRESS_FRONTEND_OPENSRP_CALLBACK_URL=http://localhost:3000/fe/oauth/callback/opensrp
EXPRESS_FRONTEND_LOGIN_URL=/fe/login
EXPRESS_ALLOW_TOKEN_RENEWAL=true
# time in seconds 3*60*60 = 10800
EXPRESS_MAXIMUM_SESSION_LIFE_TIME=10800
EXPRESS_OPENSRP_SERVER_URL=http://localhost:8081/fhir
EXPRESS_PORT=3000
EXPRESS_SESSION_NAME=reveal-session
EXPRESS_SESSION_SECRET=hunter2
EXPRESS_SESSION_PATH=/
EXPRESS_REACT_BUILD_PATH=/home/mosh/ona/reveal-frontend/build
EXPRESS_SESSION_FILESTORE_PATH=/tmp/express-sessions
EXPRESS_PRELOADED_STATE_FILE=/tmp/revealState.json
EXPRESS_MAXIMUM_LOGS_FILE_SIZE=5242880 # 5MB
EXPRESS_MAXIMUM_LOG_FILES_NUMBER=5
EXPRESS_LOGS_FILE_PATH=/home/.express/reveal-express-server.log
EXPRESS_TEMP_CSV_FILE_STORAGE=/tmp/csvUploads
# https://github.com/onaio/express-server/blob/f93e6120c683ca2ada29e0e0fa1c99cf0726f5ec/src/configs/settings.ts#L3C15-L3C15
EXPRESS_CONTENT_SECURITY_POLICY_CONFIG=`{"default-src":["'self'", "smartregister.org", "github.com"]}`
EXPRESS_CONTENT_SECURITY_POLICY_CONFIG=`{"default-src":["'self'", "smartregister.org", "github.com"], useDefaults:false, reportOnly: true}`
EXPRESS_CONTENT_SECURITY_POLICY_CONFIG=`false`
EXPRESS_REDIS_STAND_ALONE_URL=redis://username:[email protected]:6379/4
EXPRESS_REDIS_SENTINEL_CONFIG='{"name":"master","sentinelUsername":"u_name","sentinelPassword":"pass","db":4,"sentinels":[{"host":"127.0.0.1","port":6379},{"host":"127.0.0.1","port":6379}]}'
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/report-to. `Map<string, stringifiedJson>`.
EXPRESS_RESPONSE_HEADERS='{"Report-To":"{ \"group\": \"csp-endpoint\", \"max_age\": 10886400, \"endpoints\": [{ \"url\": \"https://example.com/endpoint\" }] }", "Access-Control-Allow-Headers": "GET"}'
EXPRESS_PYTHON_INTERPRETER_PATH=/usr/bin/python
EXPRESS_BULK_UPLOAD_REDIS_QUEUE="fhir-import"