-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
45 lines (37 loc) · 1.21 KB
/
.env.example
File metadata and controls
45 lines (37 loc) · 1.21 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
# Spring profile (local | dev | staging | prod)
SPRING_PROFILES_ACTIVE=local
# Database
DB_URL=jdbc:mysql://localhost:3306/pfplay?characterEncoding=UTF-8&useUnicode=true&serverTimezone=Asia/Seoul
DB_USERNAME=pfplay
DB_PASSWORD=
# Redis
REDIS_HOST=localhost
REDIS_PORT=6379
# Pytube Service API
PYTUBE_URI=http://localhost:9000
PYTUBE_API_KEY=pfplay_streaming
PYTUBE_API_SECRET=
# Google OAuth2
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_REDIRECT_URI=https://localhost:3000/auth/callback/google
# Twitter OAuth2
TWITTER_CLIENT_ID=
TWITTER_CLIENT_SECRET=
TWITTER_REDIRECT_URI=http://localhost:3000/auth/callback/twitter
# JWT
JWT_SECRET=
# Cookie (required for dev/staging/prod)
COOKIE_DOMAIN=
COOKIE_SECURE=true
COOKIE_SAME_SITE=Lax
# CORS
# allowed-origins is required for dev/staging/prod profiles (comma-separated)
# dev: https://dev.pfplay.xyz,https://dev-admin.pfplay.xyz,https://dev-api.pfplay.xyz
# staging: https://stg.pfplay.xyz,https://stg-admin.pfplay.xyz,https://stg-api.pfplay.xyz
# prod: https://pfplay.xyz,https://admin.pfplay.xyz,https://api.pfplay.xyz
CORS_ALLOWED_ORIGINS=
CORS_ALLOWED_METHODS=GET,POST,PUT,PATCH,DELETE,OPTIONS
CORS_ALLOWED_HEADERS=*
CORS_ALLOW_CREDENTIALS=true
CORS_MAX_AGE=3600