-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.example.env
More file actions
26 lines (21 loc) · 965 Bytes
/
.example.env
File metadata and controls
26 lines (21 loc) · 965 Bytes
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
# Discord OAuth2 client secret, you can get this from the Discord Developer Portal
DISCORD_CLIENT_SECRET="your_discord_client_secret"
# Roblox OAuth2 client secret, you can get this from the Roblox Creator Portal
ROBLOX_CLIENT_SECRET="your_roblox_client_secret"
# A 32 byte encryption key, you can generate one with `openssl rand -base64 24`
ENCRYPTION_KEY="your_encryption_key"
# Primarily used for private cookies
# Can be generated with `head -c64 /dev/urandom | base64`
# or something like `openssl rand -base64 64`
ROCKET_SECRET_KEY="your_rocket_secret_key"
# Database
DB_DRIVER='postgres'
# Make sure the db name matches the one set for DbConn in src/lib.rs
DB_NAME='db_name'
DB_USER='user'
DB_PASSWORD='password'
DB_HOST='localhost'
DB_PORT='5432'
# Use the variables above to construct the connection url
DATABASE_URL="${DB_DRIVER}://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}"
ROCKET_DATABASES="{${DB_NAME}={url=\"${DATABASE_URL}\"}}"