-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
52 lines (44 loc) · 1.81 KB
/
.env.example
File metadata and controls
52 lines (44 loc) · 1.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
# Docker Configuration
DOCKER_USERNAME=your-dockerhub-username
IMAGE_TAG=latest
# Application Configuration
APP_PORT=8080
SERVER_CONTEXT_PATH=/api/v1
SPRING_PROFILES_ACTIVE=prod
# Database Configuration
POSTGRES_USER=trackmoney_user
POSTGRES_PASSWORD=change_this_secure_password
POSTGRES_DB=trackmoney_db
POSTGRES_PORT=5432
# Redis Configuration
REDIS_PORT=6379
# Mail Configuration (Gmail example)
SPRING_MAIL_HOST=smtp.gmail.com
SPRING_MAIL_PORT=587
SPRING_MAIL_USERNAME=your-email@gmail.com
SPRING_MAIL_PASSWORD=your-app-password
# Security Configuration
# IMPORTANT: Generate a strong secret key for production
# You can use: openssl rand -base64 64
API_SECRET_KEY=change_this_to_a_very_long_and_secure_random_string_at_least_256_bits
# Frontend URL
FRONT_URL=https://your-frontend-domain.com
# GitHub Actions Secrets (for CI/CD)
# Add these as secrets in your GitHub repository settings:
# Settings → Secrets and variables → Actions → New repository secret
#
# REQUIRED SECRETS:
# - DOCKER_USERNAME: Docker Hub username
# - DOCKER_PASSWORD: Docker Hub password or access token
# - VPS_HOST: IP or hostname of your VPS (e.g., 192.168.1.100)
# - VPS_USER: SSH user for deployment (e.g., ubuntu)
# - VPS_SSH_KEY: Private SSH key for authentication (full content of ~/.ssh/id_rsa)
# - POSTGRES_USER: PostgreSQL username (e.g., trackmoney_user)
# - POSTGRES_PASSWORD: PostgreSQL password (use a strong password)
# - POSTGRES_DB: PostgreSQL database name (e.g., trackmoney_db)
# - SPRING_MAIL_HOST: SMTP host (e.g., smtp.gmail.com)
# - SPRING_MAIL_PORT: SMTP port (e.g., 587)
# - SPRING_MAIL_USERNAME: Email username (e.g., your-email@gmail.com)
# - SPRING_MAIL_PASSWORD: Email password or app password
# - API_SECRET_KEY: JWT secret key (generate with: openssl rand -base64 64)
# - FRONT_URL: Frontend URL (e.g., https://your-frontend.com)