Skip to content

Tribes environment variables

This is a breakdown of the neccessary environment variables needed to run a Tribes server. All of these environment variables can be found in the example.env file in the Tribes repo.

Variable NameDescriptionDefault Value
REDIS_HOSTRedis DB hostnamelocalhost
REDIS_PORTRedis DB port6379
REDIS_DBRedis DB number0
REDIS_USERNAMERedis DB usernamean empty string
REDIS_PASSWORDRedis DB passwordan empty string
SERVER_PUBLIC_KEYLocation of the server’s public keypath/to/public.key
SERVER_PRIVATE_KEYLocation of the server’s private keypath/to/private.key
PUBLIC_ACCESSTribes privacy setting; 0 means the server is private; 1 means the server is public0
OTP_KEYSecret value for the OTP settings. This should be base32 encodedmyotpkey
APP_KEYSecret value for Flask server for encrypting cookies; this should be base32 encodedmysecretappkey
ADMIN_KEYLocation of the admin’s public key on the serverpath/to/public.key
PORTPort where the Tribes server will run8000