mirror of
https://github.com/Dvorinka/Trackeep.git
synced 2026-06-03 20:12:58 +00:00
954a1a1080
- Replace Redis with DragonflyDB for better performance and memory efficiency - Remove redundant environment variables (POSTGRES_*, ENCRYPTION_KEY, OAUTH_SERVICE_URL) - Consolidate database configuration to use single DB_* variables - Use JWT_SECRET for both JWT tokens and encryption - Remove PORT variable redundancy, use BACKEND_PORT consistently - Clean up docker-compose configurations for dev/prod consistency - Add DragonflyDB configuration with optimized memory usage - Remove redis.conf as it's no longer needed - Update health checks to use Redis-compatible CLI for DragonflyDB - Add missing VITE_API_URL to production frontend - Fix GitHub Actions to use correct go.sum path - Clean up development directories and unused files
60 lines
1.7 KiB
Bash
60 lines
1.7 KiB
Bash
# Server Configuration
|
|
FRONTEND_PORT=3000
|
|
BACKEND_PORT=9000
|
|
GIN_MODE=debug
|
|
|
|
# Demo Mode Configuration
|
|
# Set to true for demo mode (read-only with demo data)
|
|
# Set to false for normal mode (full functionality)
|
|
VITE_DEMO_MODE=true
|
|
VITE_API_URL=http://localhost:9000
|
|
FRONTEND_URL=http://localhost:3000
|
|
OAUTH_SERVICE_URL=https://oauth.trackeep.org
|
|
VITE_OAUTH_SERVICE_URL=https://oauth.trackeep.org
|
|
|
|
# Database Configuration
|
|
DB_TYPE=postgres
|
|
DB_HOST=localhost
|
|
DB_PORT=5433
|
|
DB_USER=trackeep
|
|
DB_PASSWORD=your_password_here
|
|
DB_NAME=trackeep
|
|
DB_SSL_MODE=disable
|
|
|
|
# DragonflyDB Configuration
|
|
DRAGONFLY_ADDR=dragonfly:6380
|
|
DRAGONFLY_PORT=6380
|
|
DRAGONFLY_PASSWORD=your_dragonfly_password_here
|
|
|
|
# JWT Configuration (also used for encryption)
|
|
# Generate a secure 64-character hex string using: openssl rand -hex 32
|
|
JWT_SECRET=your_jwt_secret_here_64_hex_characters_long_exactly
|
|
# Token expiration time (e.g., 24h, 1h, 30m, 7d)
|
|
JWT_EXPIRES_IN=24h
|
|
|
|
# GitHub OAuth App Configuration
|
|
GITHUB_CLIENT_ID=your_github_client_id_here
|
|
GITHUB_CLIENT_SECRET=your_github_client_secret_here
|
|
GITHUB_REDIRECT_URL=http://localhost:9000/api/v1/auth/github/callback
|
|
|
|
# GitHub App Configuration (for repository installation + backups)
|
|
# App installation callback should point to:
|
|
# http://localhost:9000/api/v1/github/app/callback
|
|
GITHUB_APP_SLUG=trackeep
|
|
GITHUB_APP_ID=123456
|
|
GITHUB_APP_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\n...\n-----END RSA PRIVATE KEY-----"
|
|
GITHUB_BACKUP_ROOT=./data/github-backups
|
|
GITHUB_BACKUP_TIMEOUT=10m
|
|
|
|
# File Upload Configuration
|
|
UPLOAD_DIR=./uploads
|
|
MAX_FILE_SIZE=10485760
|
|
|
|
# CORS Configuration
|
|
CORS_ALLOWED_ORIGINS=*
|
|
|
|
# Auto Update Configuration
|
|
AUTO_UPDATE_CHECK=false
|
|
UPDATE_CHECK_INTERVAL=24h
|
|
PRERELEASE_UPDATES=false
|