-
Notifications
You must be signed in to change notification settings - Fork 21
/
.env.example
28 lines (22 loc) · 1013 Bytes
/
.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
# Any setting defined in the balsam.server.conf.Settings class
# can be set as an environment variable below.
# Settings use either the BALSAM_, BALSAM_AUTH_, or BALSAM_OAUTH_ prefix,
# depending on the category
# docker-compose.yml specific environ
# Relative to CWD:
export GUNICORN_CONFIG_FILE="balsam/server/gunicorn.conf.example.py"
export SERVER_PORT=8000
# Logging
export BALSAM_LOG_LEVEL=INFO
export BALSAM_LOG_DIR="./balsam-logs"
# Server (pass-through directly to server/conf.py)
export BALSAM_DATABASE_URL="postgresql://postgres:postgres@postgres:5432/balsam"
export BALSAM_REDIS_PARAMS='{"host": "redis", "port": "6379"}'
# Balsam API Auth
export BALSAM_AUTH_SECRET_KEY="SOME_SECRET_KEY"
export BALSAM_AUTH_TOKEN_TTL=259200
export BALSAM_AUTH_LOGIN_METHODS='["password", "oauth_authcode", "oauth_device"]'
# Login with external OAuth Provider
export BALSAM_OAUTH_CLIENT_ID="SOME_CLIENT_ID"
export BALSAM_OAUTH_CLIENT_SECRET="SOME_CLIENT_SECRET"
export BALSAM_OAUTH_SCOPE="read_basic_user_data"