-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.env.example
49 lines (39 loc) · 1.32 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
# ------------------------------- BACKEND ---------------------------------- /
# Change DOMAIN_NAME to your hostname or IP address in production build (localhost for development)
DOMAIN_NAME=localhost
NODE_ENV=development
# 🐳 Docker-compose configuration
COMPOSE_PROJECT_NAME=pong-time
COMPOSE_FILE=docker-compose.yaml
COMPOSE_FILE_DEV=docker-compose.dev.yaml
COMPOSE_FILE_PROD=docker-compose.prod.yaml
# 🐘 Database configuration
POSTGRES_USER=dbusers
POSTGRES_PASSWORD=dbpassword
POSTGRES_DB=pong-time
POSTGRES_HOST=db
POSTGRES_PORT=5432
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}?schema=public
# NESTJS
NEST_PORT=3000
BACKEND=http://${DOMAIN_NAME}:${NEST_PORT}
# 42 API
FT_CLIENT_ID=
FT_CLIENT_SECRET=
FT_REDIRECT_URI=http://${DOMAIN_NAME}:${NEST_PORT}/api/auth/ft/redirect
FT_PROFILE_URL=https://profile.intra.42.fr/users/
# Google API
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_REDIRECT_URI=http://${DOMAIN_NAME}:${NEST_PORT}/api/auth/google/redirect
# Twilio
TWILIO_ACCOUNT_SID=
TWILIO_AUTH_TOKEN=
TWILIO_VERIFY_SERVICE_SID=
# JWT
JWT_SECRET=pong-time
# ------------------------------- FRONTEND ---------------------------------- /
# 🚀 NEXTJS
NEXT_PORT=1337
FRONTEND=http://${DOMAIN_NAME}:${NEXT_PORT}
NEXT_PUBLIC_BACKEND=http://${DOMAIN_NAME}:${NEST_PORT}