-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
47 lines (42 loc) · 1.7 KB
/
.env.example
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
# Since the ".env" file is gitignored, you can use the ".env.example" file to
# build a new ".env" file when you clone the repo. Keep this file up-to-date
# when you add new variables to `.env`.
# This file will be committed to version control, so make sure not to have any
# secrets in it. If you are cloning this repo, create a copy of this file named
# ".env" and populate it with your secrets.
# When adding additional environment variables, the schema in "/src/env.mjs"
# should be updated accordingly.
################
## APP CONFIG ##
################
APP_LOG_DIR="/var/logs/comp-ctf-dov-2023"
# The publically accessible URL for the app
APP_PUBLIC_URL="https://ctf.comp.kset.org"
# Where to store files (eg. task files)
APP_FILE_STORAGE_DIR="/tmp/comp-ctf"
# The internal URL of the app.
# APP_INTERNAL_URL="http://localhost:3001"
##############
## DATABASE ##
##############
# Example URL: postgres://db_user:db_password@database-host-or-ip:5432/database-name
DATABASE_URL='postgres://YOUR_SQL_URL_HERE'
# Set this to the prefix of your database table names. This is useful if you
# have multiple instances of the same app running on the same database.
# Example: If you set this to "comp_ctf_dov_2023_", then the "users" table
# will be named "comp_ctf_dov_2023_users".
# DATABASE_TABLE_NAME_PREFIX="comp_ctf_dov_2023_"
###############
## NEXT AUTH ##
###############
## Next Auth - BASE
# You can generate a new secret on the command line with:
# openssl rand -base64 32
# https://authjs.dev/getting-started/providers/oauth-tutorial#adding-environment-variables
NEXTAUTH_SECRET=""
NEXTAUTH_URL="http://localhost:3000"
## Next Auth - Providers
AUTH_DISCORD_ID=""
AUTH_DISCORD_SECRET=""
AUTH_GITHUB_ID=""
AUTH_GITHUB_SECRET=""