View on GitHub

Gutenberg

Gutenberg is a research and teaching platform developed by the Oxford Research Engineering Group at the University of Oxford.

This document describes the environment variables used in the project, please set theses as either an env file or as secrets on fly.io.

Essential

DATABASE_URL
This is the connection string for the PostgreSQL database.
MATERIAL_DIR
Default .material
This is the directory where the material files should be stored.
YAML_TEMPLATE
This is the path to the YAML template file. This should be laid out as described here.
NEXT_PUBLIC_MATERIAL_URL
Default: https://github.com/UNIVERSE-HPC/course-material
This is the URL where the course material is hosted.
NEXT_PUBLIC_BASEPATH
Default: ""
This is the base path for the application.
NEXTAUTH_URL
This is the URL for the Gutenberg NextAuth authentication API, this will be your baseurl followed by “/api/auth” e.g. localhost:3000/api/auth for local development deployments. This must also match your settings on the github OAuth pages.
NEXTAUTH_SECRET
This is the secret key used by NextAuth for encryption and signing.
GITHUB_ID
This is the ID for the GitHub application, set this up in the GitHub developer settings.
GITHUB_SECRET
This is the secret key for GitHub authentication, set this up in the GitHub developer settings.

The following variables are used for the search functionality, you need both an OpenAI API key and QDRANT fully configured to use the semantic search functionality.

NEXT_PUBLIC_ENABLE_SEARCH
When set to true, this enables in the frontend the search functionality, this is not required for the application to run. If you do not wish to use the search functionality, you can unset this env var.
OPENAI_API_KEY
This is your API key for OpenAI.
QDRANT_DB_URL
This is the database URL for the Qdrant database.
QDRANT_COLLECTION_NAME
Default: gutenberg
This is the name of the Qdrant vector collection.
QDRANT_API_KEY
This is the API key for Qdrant, if you have set one in the Qdrant container.

Please replace the placeholder values with your actual values when setting up the environment variables.