Skip to content
This repository has been archived by the owner on Jun 22, 2022. It is now read-only.

Project Configuration

jmorring edited this page May 10, 2022 · 1 revision

Our project includes a .env file that is applied to the database and backend containers. We include a .env.template file in our repository that includes the environment variables with no values for security purposes. We use the following environment variables:

Backend database connection variables.

These should be set to an external database in production but should be the same as the development MySQL container variables in development.

  • DB_USER: the database username for the backend to connect to.
  • DB_PASSWORD: the database password for the backend to connect to.
  • DB_DATABASE: the database name for the backend to connect to.
  • DB_HOST: the database host for the backend to connect to.

Development

MySQL container variables.

  • MYSQL_DATABASE: the database name for the development MySQL container to create.
  • MYSQL_USER: the database username for the development MySQL container to create.
  • MYSQL_PASSWORD: the database password for the development MySQL container to create.
  • MYSQL_RANDOM_ROOT_PASSWORD: must be set to any value for the development MySQL container to work.

Miscellaneous

  • AUTHORIZED_USERS: the Unity IDs that are authorized to make backend requests. Multiple IDs should be separated by commas.
  • DISABLE_AUTH: set to true to disable backend authorization. This was primarily introduced to allow automated Selenium tests to work.
Clone this wiki locally