60 lines
2.2 KiB
Plaintext
60 lines
2.2 KiB
Plaintext
# =====================================================
|
|
# POSTGRESQL DATABASE - Production
|
|
# =====================================================
|
|
DATABASE_URL=postgresql://bmc_hub:CHANGEME_STRONG_PASSWORD@postgres:5432/bmc_hub
|
|
|
|
# Database credentials (bruges af docker-compose)
|
|
POSTGRES_USER=bmc_hub
|
|
POSTGRES_PASSWORD=CHANGEME_STRONG_PASSWORD
|
|
POSTGRES_DB=bmc_hub
|
|
POSTGRES_PORT=5432
|
|
|
|
# =====================================================
|
|
# GITHUB DEPLOYMENT - Production Version Control
|
|
# =====================================================
|
|
# Git tag eller branch at deploye (f.eks. "v1.0.0", "v1.2.3")
|
|
# VIGTIGT: Brug ALTID tags til production (ikke "latest" eller "main")
|
|
RELEASE_VERSION=v1.0.0
|
|
|
|
# GitHub repository (format: owner/repo eller path på Gitea)
|
|
GITHUB_REPO=ct/bmc_hub
|
|
|
|
# GitHub/Gitea Personal Access Token (skal have læseadgang til repo)
|
|
# Opret token på: https://g.bmcnetworks.dk/user/settings/applications
|
|
GITHUB_TOKEN=your_gitea_token_here
|
|
|
|
# =====================================================
|
|
# API CONFIGURATION - Production
|
|
# =====================================================
|
|
API_HOST=0.0.0.0
|
|
API_PORT=8000
|
|
API_RELOAD=false
|
|
|
|
# =====================================================
|
|
# SECURITY - Production
|
|
# =====================================================
|
|
# VIGTIGT: Generer en stærk SECRET_KEY i production!
|
|
# Brug: python -c "import secrets; print(secrets.token_urlsafe(32))"
|
|
SECRET_KEY=CHANGEME_GENERATE_RANDOM_SECRET_KEY
|
|
|
|
# CORS origins - tilføj din domain
|
|
CORS_ORIGINS=https://hub.bmcnetworks.dk,https://api.bmcnetworks.dk
|
|
|
|
# =====================================================
|
|
# LOGGING - Production
|
|
# =====================================================
|
|
LOG_LEVEL=INFO
|
|
LOG_FILE=logs/app.log
|
|
|
|
# =====================================================
|
|
# e-conomic Integration - Production
|
|
# =====================================================
|
|
ECONOMIC_API_URL=https://restapi.e-conomic.com
|
|
ECONOMIC_APP_SECRET_TOKEN=your_production_token_here
|
|
ECONOMIC_AGREEMENT_GRANT_TOKEN=your_production_grant_here
|
|
|
|
# 🚨 SAFETY SWITCHES
|
|
# Start ALTID med begge sat til true i ny production deployment!
|
|
ECONOMIC_READ_ONLY=true # Set to false after thorough testing
|
|
ECONOMIC_DRY_RUN=true # Set to false when ready for live writes
|