Files
bamort/backend/.env.example
T
2025-08-10 21:01:18 +02:00

58 lines
1.2 KiB
Bash

# Bamort Server Konfiguration
# ======================
# Server Einstellungen
# ======================
PORT=8180
SERVER_PORT=8180
# ======================
# Umgebung
# ======================
# Optionen: development, production, test
ENVIRONMENT=development
# Alternative:
# GO_ENV=development
# ======================
# Logging Konfiguration
# ======================
# Debug-Modus (true/false oder 1/0)
DEBUG=true
# Log-Level (DEBUG, INFO, WARN, ERROR)
LOG_LEVEL=DEBUG
# ======================
# Datenbank Konfiguration
# ======================
# Unterstützte Typen: mysql, sqlite
DATABASE_TYPE=mysql
# Beispiel-URLs für verschiedene Datenbank-Typen:
# MySQL: DATABASE_URL=user:password@tcp(localhost:3306)/database?charset=utf8mb4&parseTime=True&loc=Local
# PostgreSQL: DATABASE_URL=postgresql://user:password@localhost:5432/database
# SQLite: DATABASE_URL=./database.db
DATABASE_URL=
# ======================
# Beispiel-Konfigurationen
# ======================
# Development:
# ENVIRONMENT=development
# DEBUG=true
# LOG_LEVEL=DEBUG
# PORT=8180
# Production:
# ENVIRONMENT=production
# DEBUG=false
# LOG_LEVEL=INFO
# PORT=8180
# Testing:
# ENVIRONMENT=test
# DEBUG=true
# LOG_LEVEL=WARN
# PORT=8181