-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
67 lines (47 loc) · 1.6 KB
/
.env.example
File metadata and controls
67 lines (47 loc) · 1.6 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
# === APPLICATION ===
NODE_ENV = "development"
# URL of the frontend (accessible by browser)
FRONTEND_PORT = 3000
FRONTEND_URL = "http://localhost:${FRONTEND_PORT}"
# URL of the backend (accessible by browser)
APPLICATION_PORT = 4000
APPLICATION_URL = "http://localhost:${APPLICATION_PORT}"
# === SESSION ===
COOKIES_SECRET = "secret"
SESSION_SECRET = "secret"
SESSION_NAME = "session"
SESSION_DOMAIN = "localhost"
SESSION_MAX_AGE = "30d"
SESSION_HTTP_ONLY = true
SESSION_SECURE = false
SESSION_FOLDER = "sessions:"
# === DATABASE / POSTGRESQL ===
POSTGRES_USER = "root"
POSTGRES_PASSWORD = "password"
POSTGRES_HOST = "db"
POSTGRES_PORT = 5432
POSTGRES_DB = "full_authorization"
POSTGRES_URI = "postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}"
# === SESSION STORAGE / REDIS ===
REDIS_USER = "default"
REDIS_PASSWORD = "password"
REDIS_HOST = "redis"
REDIS_PORT = 6379
REDIS_URI = "redis://:${REDIS_PASSWORD}@${REDIS_HOST}:${REDIS_PORT}/0"
# === MAILER ===
MAIL_HOST = "smtp.gmail.com"
MAIL_PORT = 587
MAIL_LOGIN = "[email protected]"
MAIL_PASSWORD = "password"
# === GOOGLE RECAPTCHA ===
# Default keys below work for localhost/private instances
# GOOGLE_RECAPTCHA_SITE_KEY = "6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI"
# GOOGLE_RECAPTCHA_SECRET_KEY = "6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe"
GOOGLE_RECAPTCHA_SITE_KEY = ""
GOOGLE_RECAPTCHA_SECRET_KEY = ""
# === GOOGLE OAUTH ===
GOOGLE_CLIENT_ID = ""
GOOGLE_CLIENT_SECRET = ""
# === GITHUB OAUTH ===
GITHUB_CLIENT_ID = ""
GITHUB_CLIENT_SECRET = ""