-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.env.example
More file actions
46 lines (36 loc) · 1.26 KB
/
.env.example
File metadata and controls
46 lines (36 loc) · 1.26 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
# Environment Variables Configuration
# Copy this file to .env and fill in actual values
# .env is excluded from git - never commit secrets to version control
# Server Configuration
PORT=8080
# Database Configuration - H2 (DEFAULT for development)
# For PostgreSQL, set SPRING_PROFILES_ACTIVE=prod and configure below:
DB_URL=jdbc:h2:mem:chamaadb;MODE=PostgreSQL;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false
DATABASE_URL=jdbc:h2:mem:chamaadb;MODE=PostgreSQL;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false
DB_USERNAME=sa
DB_PASSWORD=
# PostgreSQL Configuration (only if using prod or staging profile)
# DB_URL=jdbc:postgresql://localhost:5432/chamaa_db
# DB_USERNAME=postgres
# DB_PASSWORD=your_secure_password_here
# Connection Pool Configuration - HikariCP
DB_POOL_SIZE=10
DB_MIN_IDLE=5
# JPA Configuration
JPA_DDL_AUTO=validate
JPA_DIALECT=org.hibernate.dialect.H2Dialect
JPA_SHOW_SQL=false
# Flyway Configuration
FLYWAY_ENABLED=false
# Set to true when using PostgreSQL (prod profile)
# Logging Configuration
LOG_LEVEL_ROOT=INFO
LOG_LEVEL_CHAMAA=DEBUG
LOG_LEVEL_SPRING_WEB=INFO
LOG_LEVEL_HIBERNATE=WARN
# Blockchain Configuration
POLYGON_RPC_URL=https://polygon-rpc.com
POLYGON_CHAIN_ID=137
# Profile Activation
# Options: dev (H2 database), prod (PostgreSQL)
# SPRING_PROFILES_ACTIVE=dev