Skip to content

CBIIT/bento-files

Repository files navigation

Bento Files service

Codacy Badge

Environmental Variables

Following environmental variables are needed

  • VERSION : version number
  • DATE : build date
  • URL_SRC : source for signed URL, can be one of INDEXD, CLOUD_FRONT, SIGNED_S3 or DUMMY (default)
  • BACKEND_URL : URL of bento GraphQL backend
  • AUTH_ENABLED: set to "true" to enable authentication
  • AUTHORIZATION_ENABLED: set to "true" to enable file acl authentication
  • PROJECT : can be one of ICDC, BENTO, GMB or C3DC
  • FAKE : set to "true" will bypass CLOUD_FRONT calls, it's only used for local testing
  • MYSQL_SESSION_ENABLED: set to "true" to enabled to enable MYSQL session storage

Following variable is only needed when MYSQL_SESSION_ENABLED is set to true

  • MYSQL_HOST : The host URL of the MYSQL database
  • MYSQL_PORT : The port of the MYSQL database
  • MYSQL_USER : The service user of the MYSQL database
  • MYSQL_PASSWORD : The password for the service user of the MYSQL database
  • MYSQL_DATABASE : The MYSQL database name
  • COOKIE_SECRET : secret used to sign cookies
  • SESSION_TIMEOUT : session timeout in seconds, default is 30 minutes

Following variable is only needed when AUTH_ENABLED is set to true

  • AUTH_URL : URL of bento-auth service

Following variables are only needed for specific source

INDEXD

  • INDEXD_URL : URL of IndexD service

CLOUD_FRONT

  • CF_URL : URL of CloudFront service
  • CF_KEY_PAIR_ID
  • CF_PRIVATE_KEY
  • URL_EXPIRES_IN_SECONDS : expiration for signed URL

SIGNED_S3

  • URL_EXPIRES_IN_SECONDS : expiration for signed URL