Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 1.09 KB

config.md

File metadata and controls

15 lines (8 loc) · 1.09 KB

Configuring OpenTogetherTube

OTT is configured using *.toml files located in the env/ directory.

First, a base configuration is loaded from env/base.toml. Then, based on the value of env (which can also be set using the NODE_ENV environment variable), a configuration file is loaded from env/<env>.toml. For example, if env is set to production, then env/production.toml will be loaded.

All available options

The config schema is defined in ott-config.ts. Most config options are also overridable using environment variables, which are also included in the schema.

Setting up Discord authentication

To enable Discord authentication, you must first create a Discord application. You can do this by going to the Discord Developer Portal and clicking "New Application". Give your application a name, then click "Create".

Set the callback URL to https://<your domain>/<base url>/api/auth/discord/callback. If you are running OTT locally for development, set it to http://localhost:8080/api/auth/discord/callback.