forked from botlabs-gg/yagpdb
-
Notifications
You must be signed in to change notification settings - Fork 1
/
sampleenvfile
128 lines (102 loc) · 4.79 KB
/
sampleenvfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
#!/bin/bash
# General discord stuff
SGPDB_OWNER="Insert owner id here"
SGPDB_CLIENTID="Insert client id here"
SGPDB_CLIENTSECRET="Insert client secret here"
SGPDB_BOTTOKEN="Bot token_here"
# Used for the website, required for https and csrf protection
SGPDB_HOST="somehost.com"
SGPDB_EMAIL="[email protected]"
# Postgres and redis
SGPDB_PQHOST="localhost"
SGPDB_PQUSERNAME="postgres username"
SGPDB_PQPASSWORD="postgres password"
SGPDB_PQDB="sgpdb"
SGPDB_REDIS="redis address"
# Set to yes or anything really to run in testing mode (cooldowns, verbose logging, load templates from plugin folders etc..)
SGPDB_TESTING=""
# This is the max amount of concurrent requests the bot can send to discord
# If you're running a lot of shards and guilds in the same process (25k+ guilds), and/or have a higher latency, you might need to increase this
# Recommended setup for a clustered setup of 10 shards per node is around 10 max ccr
# Defaults to 25
# SGPDB_MAX_CCR="25"
# specify the listen address for the bot's internal REST api, defaults to 127.0.0.1
# only needs to be changed if you're running the webserver on a different machine than the bot itself
# SGPDB_BOTREST_LISTEN_ADDRESS="127.0.0.1"
# Set to enable the memory monitor on the bot, this will attempt to free memory when the system is getting low on memory
# This is mainly an issue when stuff like large spikes of reconnects with full re-identify flow happening, this will try to mitigate that slightly
#SGPDB_ENABLE_MEM_MONITOR="true"
#######################################
# Clustering / Shard orchestrator mode
#######################################
# Uncomment to enable cluster/shard orchestrator mode, dont do this unless you know what that is
# SGPDB_ORCHESTRATOR_ADDRESS="127.0.0.1:7447"
# SGPDB_SHARDING_TOTAL_SHARDS="required for clustered mode"
#
# For running in multiple host mode, how that works is you run 1 shard orchestrator per host, then have that orchestrator be responsible for a subset of the shards
# SGPDB_SHARDING_ACTIVE_SHARDS
###################################################################
# Plugins and various other optional features below, not required #
###################################################################
# Administration
# Used for SGPDB_ADMINROLE and readonlyaccesrole
SGPDB_MAIN_SERVER=""
# Admins have full access to admin only commands
SGPDB_ADMIN_ROLE=""
# Users in the main server with this role can access the control panel page of any server, but they can't modify any settings
SGPDB_READONLY_ACCESS_ROLE=""
# Send discord gateway connection events to a discord channel
SGPDB_CONNEVT_CHANNEL=""
# Send connection status to a discord channel
SGPDB_CONNSTATUS_CHANNEL=""
# Bot leaves joins to this channel
SGPDB_BOTLEAVESJOINS=""
# Set to anything to disable the request logging of the webserver
SGPDB_DISABLE_REQUEST_LOGGING=""
# Aylien
SGPDB_AYLIENAPPID="aylien app id here"
SGPDB_AYLIENAPPKEY="aylien app key here"
# Owlbot
SGPDB_OWLBOT_TOKEN=
# Reddit
# You'll need to get a permanent refresh token using a script or something, i should probably make a easy way to do it but eh...
SGPDB_REDDIT_CLIENTID="Reddit application clientid here"
SGPDB_REDDIT_CLIENTSECRET="Reddit application client secret here"
SGPDB_REDDIT_REDIRECT="Reddit redirect uri here"
SGPDB_REDDIT_REFRESHTOKEN="Reddit never-ending refreshtoken here (duration=permanent)"
# Youtube and other google apis credentials json file
GOOGLE_APPLICATION_CREDENTIALS="path/to/credentials.json"
SGPDB_GOOGLE_SAFEBROWSING_API_KEY=""
SGPDB_GOOGLE_RECAPTCHA_SITE_KEY=""
SGPDB_GOOGLE_RECAPTCHA_SECRET=""
# This will be used as the pubsubhubbub (websub) verify token when receiving callbacks on new video uploads
# if this gets leaked, people could spam stuff
SGPDB_YOUTUBE_VERIFY_TOKEN="token_goes_here"
## These variables are for displaying an ad in the sidebar
# Leave empty for nothing
# Path to ad image (it's automatically prefixed with / because msys64 kept messing with my path in my dev env)
SGPDB_AD_IMG_PATH=
# Alternative, comma seperated list of paths
SGPDB_AD_VIDEO_PATHS=
# Where clicking on the image sends you
SGPDB_AD_LINK=
#Dimensions
SGPDB_AD_H=
SGPDB_AD_W=
# Google analytics ID
SGPDB_GA_ID=""
# The feed on /managed
SGPDB_ANNOUNCEMENTS_CHANNEL=""
# Pass a api key to list pledges on your patreon on the website
# This refresh token will only work and will only be used once, the api returns a new token which we store in redis
# under the patreon_refresh_token key, therefor if you wipe redis you will have to update this refresh token again
SGPDB_PATREON_API_REFRESH_TOKEN=""
SGPDB_PATREON_API_CLIENT_ID=""
SGPDB_PATREON_API_CLIENT_SECRET=""
SGPDB_GOOGLE_RECAPTCHA_SITE_KEY=""
SGPDB_GOOGLE_RECAPTCHA_SECRET=""
# Twitter API credentials for twitter feeds
# SGPDB_TWITTER_ACCESS_TOKEN=
# SGPDB_TWITTER_ACCESS_TOKEN_SECRET=
# SGPDB_TWITTER_CONSUMER_KEY=
# SGPDB_TWITTER_CONSUMER_SECRET=