-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
51 lines (43 loc) · 2.01 KB
/
.env.example
File metadata and controls
51 lines (43 loc) · 2.01 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
# =============================================================================
# Agrotech — Environment Configuration
# =============================================================================
# Copy this file to .env and fill in production values.
# For local development, the defaults in docker-compose.yml are sufficient —
# just run: docker-compose up --build -d
#
# ⚠️ NEVER commit the .env file to version control!
# See docs/production-secrets.md for production setup guide.
# =============================================================================
# --- PostgreSQL Database ---
POSTGRES_DB=agroplatform_db
POSTGRES_USER=agroplatform
# Generate: openssl rand -base64 32
POSTGRES_PASSWORD=CHANGE_ME_STRONG_PASSWORD
# --- JWT Authentication ---
# Minimum 32 characters. Generate: openssl rand -base64 64
JWT_KEY=CHANGE_ME_MINIMUM_32_CHARACTERS_LONG_SECRET_KEY!!
JWT_ISSUER=AgroPlatform
JWT_AUDIENCE=AgroPlatform
# --- CORS ---
# Production frontend URL (with https://)
CORS_ORIGIN=https://your-production-domain.com
# GitHub Codespaces frontend URL (required when running docker-compose inside Codespaces)
# Copy the Codespaces port-forwarding URL for port 3000, e.g.:
# CODESPACES_URL=https://your-codespace-3000.app.github.dev
CODESPACES_URL=
# --- Swagger ---
# Set to true to expose /swagger in non-Development environments (enabled by default in docker-compose)
SWAGGER_ENABLED=true
# --- Auto-Migrations ---
# Set to true to auto-apply EF Core migrations on startup (default: true in docker-compose)
AUTO_MIGRATE=true
# --- Production Domain (for TLS/HTTPS) ---
# Required for docker-compose.prod.yml (Nginx + Let's Encrypt)
DOMAIN=your-production-domain.com
EMAIL=admin@your-production-domain.com
# --- Logging ---
# Logs are stored in Docker volume 'api-logs' mapped to /app/logs in the API container
# --- Push Notifications (Web Push / VAPID) ---
# Generate a VAPID key pair: npx web-push generate-vapid-keys
# Set the public key in the frontend and the private key in the backend (future use)
VITE_VAPID_PUBLIC_KEY=