-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
89 lines (78 loc) · 2.81 KB
/
Copy path.env.example
File metadata and controls
89 lines (78 loc) · 2.81 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# ===========================================
# Java API - Environment Configuration
# ===========================================
# Copy this file to .env and update values for your environment.
# Note: Spring Boot doesn't load .env files by default.
# Use: spring-dotenv dependency, or load via shell before running.
#
# PowerShell: Get-Content .env | ForEach-Object { if ($_ -match '^([^#].+?)=(.*)$') { [System.Environment]::SetEnvironmentVariable($matches[1], $matches[2]) } }
# Bash: export $(grep -v '^#' .env | xargs)
# ===========================================
# Server Configuration
# ===========================================
SERVER_PORT=8080
SERVER_MAX_THREADS=200
SERVER_MIN_THREADS=10
# ===========================================
# Default Database (Primary)
# ===========================================
# H2 (Development)
DEFAULT_DB_URL=jdbc:h2:mem:defaultdb;DB_CLOSE_DELAY=-1
DEFAULT_DB_USERNAME=sa
DEFAULT_DB_PASSWORD=
DEFAULT_DB_DRIVER=org.h2.Driver
# PostgreSQL Example:
# DEFAULT_DB_URL=jdbc:postgresql://localhost:5432/myapp
# DEFAULT_DB_USERNAME=postgres
# DEFAULT_DB_PASSWORD=your_password
# DEFAULT_DB_DRIVER=org.postgresql.Driver
# MySQL Example:
# DEFAULT_DB_URL=jdbc:mysql://localhost:3306/myapp
# DEFAULT_DB_USERNAME=root
# DEFAULT_DB_PASSWORD=your_password
# DEFAULT_DB_DRIVER=com.mysql.cj.jdbc.Driver
# ===========================================
# Additional Databases (Add as needed)
# ===========================================
# Configure additional databases in application.yml under app.datasources
# Or add environment variables and reference them in application.yml:
#
# INVENTORY_DB_URL=jdbc:postgresql://localhost:5432/inventory
# INVENTORY_DB_USERNAME=postgres
# INVENTORY_DB_PASSWORD=secret
#
# ORDERS_DB_URL=jdbc:mysql://localhost:3306/orders
# ORDERS_DB_USERNAME=root
# ORDERS_DB_PASSWORD=secret
# ===========================================
# Redis Configuration (Optional)
# ===========================================
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_TIMEOUT=2000
# ===========================================
# Cache Configuration
# ===========================================
# Options: simple (in-memory), redis (distributed)
CACHE_TYPE=simple
# ===========================================
# H2 Console (Development Only)
# ===========================================
H2_CONSOLE_ENABLED=true
# ===========================================
# Async Processing
# ===========================================
ASYNC_CORE_POOL_SIZE=5
ASYNC_MAX_POOL_SIZE=10
ASYNC_QUEUE_CAPACITY=25
# ===========================================
# Pagination
# ===========================================
DEFAULT_PAGE_SIZE=20
MAX_PAGE_SIZE=100
# ===========================================
# External API Configuration
# ===========================================
EXTERNAL_API_TIMEOUT=5000
EXTERNAL_API_RETRY=3