Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update .env.example with latest settings #208

Open
wants to merge 3 commits into
base: qa
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 51 additions & 7 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,15 +1,59 @@
NEXTAUTH_SECRET=dAbxJF2DRzqwGYn+BWKdj8o9ieMri4FWsmIRn77r2F8=
# Please modify the following environment variables accordingly.

CTIMS_ENV=development
CTIMS_API_VERSION=2.1


#DATABASE_URL=mysql://ctims:ctims@localhost:3306/ctims
#AES 256 key, it can be generated using https://cloak.47ng.com/key
#Random example key given here. Please replace this key for your install.
#PRISMA_FIELD_ENCRYPTION_KEY=k1.aesgcm256.wPyWsb8gQ2Xn-UgiaOQRqs3nb4FWIYR01DDihQgeqBg=

# command to create a new secret - openssl rand -base64 32
# NEXTAUTH Secret is used to encrypt the NextAuth.js JWT
#Example value QG0ip+EjLW4j9BNlXPcC5kXjXcEAW/cYP1mbZKLP1q8=
NEXTAUTH_SECRET=secret
REACT_APP_API_URL=http://localhost:3333/api
NEXTAUTH_URL=http://localhost:3000
NEXT_AUTH_API_URL=http://backend:3333/api
NEXTAUTH_API_URL=http://backend:3333/api
NEXT_PUBLIC_SIGNOUT_REDIRECT_URL=http://localhost:3000
NEXT_PUBLIC_TRIAL_LOCK_PING_TIME_MS=240000
NEXT_TRIAL_LOCK_CLEAR_TIME_MS=300000


#keycloak settings
KEYCLOAK_URL=<KEYCLOAK_URL>
KEYCLOAK_CLIENT_ID=<client_id>
# Keycloak client uuid. This is different from the id above.
# If you cannot find it in the client settings, the URL usually includes it. Example: http://localhost:8080/admin/master/console/#/ctims/clients/3813811a-***/settings, 3813811a-*** is the uuid
KEYCLOAK_CLIENT_UUID=<uuid>
# We suggest creating a new realm instead of using the default master realm.
KEYCLOAK_REALM=<realm>
# This is the client secret that stored under the Credentials tab in the client page.
# The realm needs to have client authentication enabled to see the Credentials tab.
KEYCLOAK_CLIENT_SECRET=<client_secret>
KEYCLOAK_ADMIN_CLIENT_ID=ctims-admin # a client with sevice account enabled
# a client with sevice account enabled
# It does not need to be a separate client. If your above client already has service account enabled, use the same ID here.
KEYCLOAK_ADMIN_CLIENT_ID=ctims-admin
KEYCLOAK_ADMIN_CLIENT_SECRET=<secret>
KEYCLOAK_TOKEN_ENDPOINT=https://cbioportal.pmgenomics.ca/newauth/realms/UHN/protocol/openid-connect/token
NEXT_PUBLIC_ENABLE_MATCHMINER_INTEGRATION=true
NEXT_PUBLIC_TRIAL_LOCK_PING_TIME_MS=240000
NEXT_TRIAL_LOCK_CLEAR_TIME_MS=300000
# This is the endpoint to get access token.
KEYCLOAK_TOKEN_ENDPOINT=

#matchminer settings - only if matchminer integration is enabled
NEXT_PUBLIC_ENABLE_MATCHMINER_INTEGRATION = true
MM_API_URL=<matchminer-api-url>/api
MM_API_TOKEN=

#Rabbitmq settings for MatchMiner communication
RABBITMQ_URL=rabbitmq
RABBITMQ_PORT=5672
MATCHMINER_SEND_QUEUE=run_match
MATCHMINER_RECEIVE_QUEUE=match_message

# email notification settings
#example Host name gmail.com
MAIL_HOST=<hostname>
MAIL_USERNAME=<userid>
MAIL_PASSWORD=<leave_blank>
CTIMS_SUPPORT_EMAIL=<ctims_support_email>
CTIMS_URL=<ctims_website_url>