Repository navigation
Expand file tree
/
Copy pathexample.env
More file actions
67 lines (55 loc) · 2.24 KB
/
Copy pathexample.env
File metadata and controls
67 lines (55 loc) · 2.24 KB
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
# MAKE A COPY OF THIS AND RENAME THE COPY TO .env
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_NAME=codebloom
DATABASE_USER=postgres
DATABASE_PASSWORD=enterpasswordhere
# With the example values, this gets combined inside of the application.properties to make
# jdbc://postgresql://localhost:5432/codebloom?user=postgres&password=enterpasswordhere
# For Discord authentication, pretty self explanatory.
DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=
DISCORD_TOKEN=
# Discord server ID & channel ID that we consider our "home base". This channel will receive weekly messages
# on the performance of the Patina tagged users.
DISCORD_PATINA_GUILD_ID=
DISCORD_PATINA_LEETCODE_CHANNEL_ID=
# Discord server ID & channel ID that we use for our custom reporter. Errors go here.
DISCORD_REPORTING_GUILD_ID=
DISCORD_REPORTING_CHANNEL_ID=
# Discord server ID & channel ID that we use for our custom reporter. Logs go here.
DISCORD_REPORTING_LOG_GUILD_ID=
DISCORD_REPORTING_LOG_CHANNEL_ID=
# required
# This official email sends school verification messages using TLS (port 587).
CODEBLOOM_EMAIL_HOST=
CODEBLOOM_EMAIL_PORT=587
CODEBLOOM_EMAIL_TYPE=SMTP
CODEBLOOM_EMAIL_USERNAME=
CODEBLOOM_EMAIL_PASSWORD=
# Used to toggle SpringDoc (OpenAPI & Swagger).
ENABLE_DOCUMENTATION=true
# Secret key - used to sign JWTs for things like sending emails. Can be changed without causing
# significant harm.
# Generate with `openssl rand -base64 48 | head -c 64`
SECRET_KEY=<changeme>
# Server URL, pretty self explanatory.
# Why is this port 5173? Vite will forward api
# requests to the backend if needed.
SERVER_URL=http://localhost:5173
# read by leetcode-auth-service
# leetcode.com username/email and password. LASS logs in with these directly on
# leetcode.com's login form, so they must be LeetCode credentials, not GitHub ones.
LEETCODE_AUTH_USERNAME=
LEETCODE_AUTH_PASSWORD=
REDIS_URL=redis://localhost:6379/0
GRPC_LASS_HOST=localhost:50051
GRPC_LASS_TLS=false
# To use staging LASS (must be on VPN), replace the host and TLS values above:
# GRPC_LASS_HOST=stg.codebloom-leetcode-auth-stealer-service.vpn.patinanetwork.org:50051
# GRPC_LASS_TLS=true
GRPC_LASS_TIMEOUT_SECONDS=180
REFRESH_LOCK_TTL_SECONDS=210
REFRESH_CHECK_INTERVAL_SECONDS=900
TOKEN_MAX_AGE_SECONDS=14400
GRPC_REFLECTION=true