-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
71 lines (61 loc) · 2.92 KB
/
.env.example
File metadata and controls
71 lines (61 loc) · 2.92 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
68
69
70
71
# SOSO Server - Environment Variables Template
# Copy this file to .env and fill in your actual values
# =============================================================================
# Application Configuration
# =============================================================================
SPRING_PROFILES_ACTIVE=prod
API_IMAGE=ghcr.io/b2a5/soso-api:latest
# =============================================================================
# Database Configuration (MySQL)
# =============================================================================
MYSQL_ROOT_PASSWORD=your-secure-root-password-here
DB_NAME=soso
DB_USER=soso_user
DB_PASS=your-secure-db-password-here
# =============================================================================
# JWT Configuration
# =============================================================================
JWT_SECRET=your-super-secure-jwt-secret-key-at-least-256-bits
JWT_AT_VALIDITY=1800000
JWT_RT_VALIDITY=1209600000
# =============================================================================
# Frontend Configuration
# =============================================================================
FRONTEND_ORIGIN=https://soso.dreampaste.com,https://your-frontend-domain.com
# =============================================================================
# OAuth Configuration (Kakao)
# =============================================================================
KAKAO_CLIENT_ID=your-kakao-client-id
KAKAO_REDIRECT_URIS=https://soso.dreampaste.com/auth,https://your-frontend-domain.com/auth
# =============================================================================
# AWS Configuration (S3)
# =============================================================================
AWS_REGION=ap-northeast-2
AWS_ACCESS_KEY_ID=your-aws-access-key-id
AWS_SECRET_ACCESS_KEY=your-aws-secret-access-key
AWS_S3_BUCKET=your-s3-bucket-name
S3_BASE_URL=https://your-s3-bucket-name.s3.ap-northeast-2.amazonaws.com
# =============================================================================
# External Services
# =============================================================================
KAFKA_BOOTSTRAP=your-kafka-bootstrap-servers
# =============================================================================
# Cookie Configuration (Environment-specific)
# =============================================================================
# 프로덕션: HTTPS 필수, 크로스 도메인 허용
COOKIE_SECURE=true
COOKIE_SAME_SITE=None
# 로컬 개발 환경에서는 다음과 같이 설정:
# COOKIE_SECURE=false
# COOKIE_SAME_SITE=Lax
# =============================================================================
# Development/Testing Overrides (Optional)
# =============================================================================
# Uncomment and modify for local development
# SPRING_PROFILES_ACTIVE=dev
# DB_HOST=localhost
# DB_PORT=3307
# REDIS_HOST=localhost
# REDIS_PORT=6379
# COOKIE_SECURE=false
# COOKIE_SAME_SITE=Lax