generated from CS3219-AY2324S1/course-assessment-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
52 lines (40 loc) · 1.46 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
48
49
50
51
52
# 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.
## Node
NODE_ENV=development
PORT=3000
# Websocket port
NEXT_PUBLIC_WS_PORT=3002
NEXT_PUBLIC_WS_URL="http://localhost:${PORT}"
NEXT_PUBLIC_PORT=3000
# PostgreSQL
POSTGRES_USER=postgres
POSTGRES_PASSWORD=password
POSTGRES_URL="postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/db?schema=public"
MONGO_USER=root
MONGO_PASSWORD=password
# MONGO_URL="mongodb://${MONGO_USER}:${MONGO_PASSWORD}@localhost:27017/db?authSource=admin"
MONGO_URL="mongodb://localhost:27017/db"
# Next Auth
# You can generate a new secret on the command line with:
# openssl rand -base64 32
# https://next-auth.js.org/configuration/options#secret
NEXTAUTH_SECRET=NEXTAUTH_SECRET
NEXT_AUTH_SECRET=EXAMPLE_JWT_SECRET
NEXTAUTH_URL="http://localhost:${PORT}"
# Judge0
J0_URL="http://localhost:2358"
# S3
S3_ENDPOINT="http://localhost:9000"
S3_BUCKET_NAME=s3
# Github OAuth Provider
GITHUB_ID=EXAMPLE_GITHUB_ID
GITHUB_SECRET=EXAMPLE_GITHUB_SECRET
# OpenAI
OPENAI_API_KEY=EXAMPLE_OPENAI_ID