-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
28 lines (24 loc) · 1.06 KB
/
Copy path.env.example
File metadata and controls
28 lines (24 loc) · 1.06 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
### gateway:auth — JWT ###
# HS256 서명 키. 최소 256비트(32바이트) 이상이어야 한다
JWT_SECRET_KEY=replace-with-32-byte-or-longer-secret-key
JWT_ISSUER=stream-server
# Access Token 만료 시간 (ms)
JWT_ACCESS_TOKEN_EXPIRY=3600000
### infrastructure:db — MySQL ###
DB_URL=jdbc:mysql://localhost:3306/stream?serverTimezone=Asia/Seoul&characterEncoding=UTF-8
DB_USERNAME=stream
DB_PASSWORD=replace-with-db-password
### infrastructure:client — 파일 스토리지 (local | s3) ###
FILE_STORAGE_TYPE=local
# type=local일 때
LOCAL_STORAGE_BASE_PATH=./local-storage
LOCAL_STORAGE_BASE_URL=http://localhost:8080
LOCAL_STORAGE_UPLOAD_URL_EXPIRY_SECONDS=600
# type=s3일 때 (S3 호환 스토리지 = Cloudflare R2). R2는 IAM 역할이 없어 API 토큰 키를 직접 주입한다
R2_BUCKET=replace-with-bucket-name
R2_ENDPOINT=https://<account_id>.r2.cloudflarestorage.com
R2_ACCESS_KEY=replace-with-r2-access-key
R2_SECRET_KEY=replace-with-r2-secret-key
# R2는 region을 auto로 고정한다 (변경 불필요)
R2_REGION=auto
S3_UPLOAD_URL_EXPIRY_SECONDS=600