-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.env_template
46 lines (37 loc) · 1.52 KB
/
.env_template
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
APP_NAME="CAS auth bot for Discord"
#APP_DESCRIPTION="Connect to your CAS account to get your Discord role"
APP_VERSION=1.0
APP_NOTICE="This app is not affiliated nor endorsed by..." # you can use HTML here
COPYRIGHT_YEAR=2024
HELP_EMAIL="[email protected]"
DEFAULT_LANG="en" # en, fr
BOT_NAME="CAS Auth Bot"
ADMIN_GUILD_ID="" # Discord guild ID
APP_SECRET_KEY="dev" # used for cookie encryption # could generate at startup ?
FASTAPI_HOST="localhost"
FASTAPI_PORT=8000
SESSION_MAX_AGE=3600 # in seconds
SITE_URL="http://discordcas.example.org"
ICON_URL="https://github.com/LucasPlacentino/cas-sso-discord-bot/assets/23436953/647500ce-aef6-4cb3-bfba-5a8ef0bb4a8e.png"
MAIN_COLOR="#070a4b"
DB_PORT=3306
DB_TYPE="mysql" # mysql, postgresql, sqlite or gsheets
DATABASE_URL="mysql://app@localhost:3306/" # sqlite for dev
DB_USER="app"
DB_PASSWORD="db_password"
# ONYL FOR GSHEETS DB:
#TODO: add gsheets db config
CAS_VERSION=1 # CAS protocol version
#CAS_SERVICE_URL="http://test-cas.example.org/service" # or "https://thisapp.example.org/login"
CAS_SERVER_URL="http://test-cas.example.org"
CAS_ICON_URL="https://apereo.github.io/cas/images/cas_logo.png"
#CAS_ENDPOINT="http://test-cas.example.org" # CAS server URL
#CAS_TICKET_URL_PATH="/cas-validate" # CAS ticket validation URL path
DISCORD_CLIENT_ID="" # Discord OAuth2 client ID
DISCORD_CLIENT_SECRET="" # Discord OAuth2 client secret
DISCORD_REDIRECT_URI="" # Discord OAuth2 redirect URI
DISCORD_BOT_TOKEN="" # Discord bot token
# ---- For Dev ----
DEV_ENV=false
DEBUG=false
BOT_DISABLED=false