-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
50 lines (41 loc) ยท 1.51 KB
/
.env.example
File metadata and controls
50 lines (41 loc) ยท 1.51 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
# ============================================================================
# Spring Boot Environment Variables
# ============================================================================
# ์ด ํ์ผ์ .env๋ก ๋ณต์ฌํ ํ ์ค์ ๊ฐ์ ์
๋ ฅํ์ธ์.
# cp .env.example .env
# (.gitignore์ ์ํด .env๋ Git์์ ์ ์ธ๋ฉ๋๋ค)
# ============================================================================
# --- Profile ---
SPRING_PROFILES_ACTIVE=local
# --- Server ---
SERVER_PORT=8080
# --- Database (MySQL) ---
DATABASE_URL=jdbc:mysql://localhost:13306/app_db?allowPublicKeyRetrieval=true&useSSL=false
DATABASE_NAME=app_db
DATABASE_ROOT_PASSWORD=rootpassword
DATABASE_USER=app_user
DATABASE_PASSWORD=app_password
# --- JWT ---
JWT_SECRET_KEY=6c8b6817-828b-418c-adfa-edcc993cd0c9
JWT_ACCESS_TOKEN_EXPIRES_IN=720000000
JWT_REFRESH_TOKEN_EXPIRES_IN=1209600000
# --- Redis ---
REDIS_HOST=localhost
REDIS_PORT=16379
# --- Kafka ---
KAFKA_BOOTSTRAP_SERVERS=localhost:19092
KAFKA_CONSUMER_GROUP_ID=dabom-api-core-dev
KAFKA_AUTO_OFFSET_RESET=earliest
KAFKA_POLICY_DEDUP_TTL_SECONDS=3600
KAFKA_USAGE_PERSIST_DEDUP_TTL_SECONDS=600
# --- R2 (Cloudflare S3 compatible) ---
R2_ENDPOINT=https://<account-id>.r2.cloudflarestorage.com
R2_ACCESS_KEY=changeme
R2_SECRET_KEY=changeme
R2_BUCKET=dabom-storage
R2_CDN_BASE_URL=https://cdn.dabom.site
# --- CORS ---
FRONTEND_URL=http://localhost:3000,http://localhost:3001
# --- Observability (OpenTelemetry) ---
OTEL_SDK_DISABLED=true
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318