-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
67 lines (54 loc) · 1.93 KB
/
.env.example
File metadata and controls
67 lines (54 loc) · 1.93 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
# Database Configuration
POSTGRES_DB=invoicebuilder
POSTGRES_USER=invoiceuser
POSTGRES_PASSWORD=your_secure_password_here
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
# Spring Boot Configuration
SPRING_PROFILES_ACTIVE=prod
SERVER_PORT=8080
# Security Configuration
JWT_SECRET=your_jwt_secret_key_here_make_it_long_and_random_minimum_256_characters
JWT_EXPIRATION=86400000
# Token Configuration
SECURITY_JWT_ACCESS_TOKEN_TTL=15m
SECURITY_JWT_REFRESH_TOKEN_TTL=7d
SECURITY_TOKENS_EMAIL_VERIFICATION_TTL=24h
SECURITY_TOKENS_PASSWORD_RESET_TTL=1h
# Email Configuration
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=your_email@gmail.com
SMTP_PASSWORD=your_app_password_here
EMAIL_PROVIDER=smtp
# SendGrid Configuration (optional)
SENDGRID_API_KEY=your_sendgrid_api_key_here
# OAuth2 Configuration
# Google OAuth2
OAUTH2_GOOGLE_CLIENT_ID=your_google_client_id_here
OAUTH2_GOOGLE_CLIENT_SECRET=your_google_client_secret_here
# Microsoft OAuth2
OAUTH2_MICROSOFT_CLIENT_ID=your_microsoft_client_id_here
OAUTH2_MICROSOFT_CLIENT_SECRET=your_microsoft_client_secret_here
# GitHub OAuth2 (optional)
OAUTH2_GITHUB_CLIENT_ID=your_github_client_id_here
OAUTH2_GITHUB_CLIENT_SECRET=your_github_client_secret_here
# Facebook OAuth2 (optional)
OAUTH2_FACEBOOK_CLIENT_ID=your_facebook_client_id_here
OAUTH2_FACEBOOK_CLIENT_SECRET=your_facebook_client_secret_here
# Frontend Configuration (for CORS)
FRONTEND_URL=http://localhost:5173
ALLOWED_ORIGINS=${FRONTEND_URL},http://localhost:3000
# Monitoring and Logging
LOGGING_LEVEL_ROOT=INFO
LOGGING_LEVEL_OR_INVOICEBUILDER=DEBUG
MANAGEMENT_ENDPOINTS_WEB_EXPOSURE_INCLUDE=health,info,metrics
MANAGEMENT_ENDPOINTS_HEALTH_SHOW_DETAILS=when-authorized
# Performance and Connection Pooling
SPRING_DATASOURCE_HIKARI_MAXIMUM_POOL_SIZE=20
SPRING_DATASOURCE_HIKARI_MINIMUM_IDLE=5
SPRING_DATASOURCE_HIKARI_IDLE_TIMEOUT=300000
SPRING_DATASOURCE_HIKARI_CONNECTION_TIMEOUT=20000
# File Upload Configuration
MAX_FILE_SIZE=10MB
UPLOAD_DIR=./uploads