Configuration

Environment variables

To change the environment variables edit the .env file.

NameTypeDescription
URLStringThe webroot of the application to base of links and routing
POSTGRES_USERStringDatabase user name
POSTGRES_PASSWORDStringDatabase password
BACKEND_URLStringBackend webroot (= URL)
BACKEND_API_GRAPHQL_PLAYGROUNDBoolEnables GraphQL playground (automatically enabled when compiled in development mode)
BACKEND_API_JWT_SECRETStringPassword to encrypt all authentication tokens with
BACKEND_API_JWT_EXPIRATIONIntExpiration time of authentication tokens in minutes

Compile time

Backend

Setting the development flag with -Ddevelopment flag on compiling the backend will result in being able to debug the API endpoints at /graphql?development=true. Also automatically enables the GraphQL playground at /graphql.