mirror of
https://github.com/Dvorinka/Trackeep.git
synced 2026-07-28 21:43:50 +00:00
55 lines
1.4 KiB
Bash
55 lines
1.4 KiB
Bash
# Server Configuration
|
|
FRONTEND_PORT=3000
|
|
FRONTEND_HOST_PORT=3900
|
|
BACKEND_PORT=8080
|
|
BACKEND_HOST_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:3900
|
|
PUBLIC_API_URL=http://localhost:9000
|
|
|
|
# Database Configuration
|
|
DB_TYPE=postgres
|
|
DB_HOST=localhost
|
|
DB_PORT=5432
|
|
DB_HOST_PORT=5433
|
|
DB_USER=trackeep
|
|
DB_PASSWORD=your_password_here
|
|
DB_NAME=trackeep
|
|
DB_SSL_MODE=disable
|
|
|
|
# DragonflyDB Configuration
|
|
DRAGONFLY_ADDR=dragonfly:6379
|
|
DRAGONFLY_PORT=6379
|
|
DRAGONFLY_HOST_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 backup storage
|
|
# Self-hosted Trackeep instances use the unified control service for GitHub sign-in
|
|
# and GitHub App installation. No per-instance GitHub App credentials are required.
|
|
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
|