mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-31 21:21:49 +01:00
Removed PostgreSQL and MySQL support to reduce complexity: - Removed postgres and mysql drivers from go.mod - Simplified database.Initialize() to only use SQLite - Simplified DatabaseConfig struct (removed Driver, Host, Port, User, Password, SSLMode) - Removed GetDSN() method from config - Removed --db CLI flag (only --db-name remains for specifying SQLite file path) - Updated .env.example to remove MySQL/PostgreSQL options - Updated README_GOLANG.md to reflect SQLite-only support - Ran go mod tidy to clean up dependencies This makes the application simpler to deploy and maintain, with no external database dependencies required.
22 lines
474 B
Text
22 lines
474 B
Text
# Server Configuration
|
|
SERVER_HOST=0.0.0.0
|
|
SERVER_PORT=3000
|
|
GIN_MODE=debug
|
|
|
|
# Database Configuration (SQLite)
|
|
DB_NAME=tracks.db
|
|
|
|
# Authentication Configuration
|
|
JWT_SECRET=your-secret-key-change-this-in-production
|
|
TOKEN_EXPIRY_HOURS=168
|
|
SECURE_COOKIES=false
|
|
|
|
# Application Configuration
|
|
APP_NAME=Tracks
|
|
TZ=UTC
|
|
OPEN_SIGNUPS=true
|
|
ADMIN_EMAIL=admin@example.com
|
|
SECRET_TOKEN=your-secret-token-change-this-in-production
|
|
FORCE_SSL=false
|
|
UPLOAD_PATH=./uploads
|
|
MAX_UPLOAD_SIZE_MB=10
|