Complete enviroment variable list

Function/Usage

Variable

Default

Type

Bot admin status

YAGPDB_ADMIN_ROLE

0

integer

Source of announcements for the homepage

YAGPDB_ANNOUNCEMENTS_CHANNEL

0

integer

AYLIEN app ID

YAGPDB_AYLIENAPPID

string

AYLIEN app key

YAGPDB_AYLIENAPPKEY

string

Background worker listen address

YAGPDB_BGWORKER_HTTP_SERVER_ADDR

localhost:5004

string

Log channel for join/leave events

YAGPDB_BOTLEAVESJOINS

0

integer

Botrest listen adress

YAGPDB_BOTREST_LISTEN_ADDRESS

127.0.0.1

(port 5010 or the next higher available port)

string

Access token for the bot

YAGPDB_BOTTOKEN

string

Client ID for the Discord application

YAGPDB_CLIENTID

integer

Client secret for the Discord application

YAGPDB_CLIENTSECRET

string

Gateway events log channel

YAGPDB_CONNEVT_CHANNEL

0

integer

Gateway connection status channel

YAGPDB_CONNSTATUS_CHANNEL

0

integer

Disable keepalive connections to Discord [1]

YAGPDB_DISABLE_KEEPALIVES

false

boolean

Disable logging of http requests

YAGPDB_DISABLE_REQUEST_LOGGING

false

boolean

Datadog statsd collector adress

YAGPDB_DOGSTATSDADDRESS

string

Let's Encrypt certificate email [2]

YAGPDB_EMAIL

string

Google analytics ID

YAGPDB_GA_ID

string

reCAPTCHA secret

YAGPDB_GOOGLE_RECAPTCHA_SECRET

string

reCAPTCHA key

YAGPDB_GOOGLE_RECAPTCHA_SITE_KEY

string

Google safebrowing API key

YAGPDB_GOOGLE_SAFEBROWSING_API_KEY

string

Server hostname

YAGPDB_HOST

string

Main server ID [3]

YAGPDB_MAIN_SERVE

0

integer

Maximum concurrent requests to Discord

YAGPDB_MAX_CCR

25

integer

Memory monitor [4]

YAGPDB_MEM_MONITOR_ENABLED

true

boolean

Sharding orchestrator adress [5]

YAGPDB_ORCHESTRATOR_ADDRESS

string

Discord ID of the bot owner

YAGPDB_OWNER

integer

Patreon API access token

YAGPDB_PATREON_API_ACCESS_TOKEN

string

Patreon API client id

YAGPDB_PATREON_API_CLIENT_ID

string

Pateron API client secret

YAGPDB_PATREON_API_CLIENT_SECRET

string

Patreon API refresh token

YAGPDB_PATREON_API_REFRESH_TOKEN

string

Posgres database

YAGPDB_PQDB

yagpdb

string

Postgres host

YAGPDB_PQHOST

localhost

string

Postgres password

YAGPDB_PQPASSWORD

string

Postgres user

YAGPDB_PQUSERNAME

postgres

string

Role with global read only configuration access

YAGPDB_READONLY_ACCESS_ROLE

0

integer

Reddit API client ID

YAGPDB_REDDIT_CLIENTID

string

Reddit API client secret

YAGPDB_REDDIT_CLIENTSECRET

string

Redirect URI for Reddit app

YAGPDB_REDDIT_REDIRECT

string

RefreshToken for Reddit API

YAGPDB_REDDIT_REFRESHTOKEN

string

Redis adress

YAGPDB_REDIS

localhost:6379

string

Reaction removal in single mode disable [6]

YAGPDB_ROLECOMMANDS_DISABLE_REACTION

_REMOVAL_SINGLE_MODE

false

boolean

Sentry credentials for logging hook

YAGPDB_SENTRY_DSN

string

Twitter API access token

YAGPDB_TWITTER_ACCESS_TOKEN

string

Twitter API secret

YAGPDB_TWITTER_ACCESS_TOKEN_SECRET

string

Twitter consumer key

YAGPDB_TWITTER_CONSUMER_KEY

string

Twitter consumer secret

YAGPDB_TWITTER_CONSUMER_SECRET

string

Reverse Proxy Real IP header

YAGPDB_WEB_REVERSE_PROXY_CLIENT_IP_HEADER

string

YouTube websub push verify token [7]

YAGPDB_YOUTUBE_VERIFY_TOKEN

asdkpoasdkpaoks

string

Ad height

YAGPDB_AD_H

0

integer

Ad image path

YAGPDB_AD_IMG_PATH

string

Ad follow link

YAGPDB_AD_LINK

string

Ad video paths

YAGPDB_AD_VIDEO_PATHS

string

Ad width

YAGPDB_AD_W

0

integer

[1] known to help against network issues [2] only when using Let's Encrypt companion [3] grants certain roles bot admin access [4] will free resources when running low [5] will put the bot into orchestration mode [6] leaving it enabled could cause a big amount of requests (Variable is continuous, here on two lines) [7] should be set to somthing random and never change [8] should be comma separated paths