Files
dune-dashboard/settings.yaml.example
T
Reditus 0f173dc107 feat: separate dashboard database + launcher repair/cleanup options
- Move dashboard tables (bans, player_ips, audit_log, chat_history,
  settings, player_actions) to a dedicated 'dashboard' database to
  prevent pg_dump conflicts during game updates
- Add DashboardDatabaseService (legacy + backend) with auto-migration
  from old dashboard schema on first startup
- Add launcher option 9: Repair Game Database (fixes schema ownership)
- Add launcher option 10: Clean up Old Dashboard Schema (drops old schema)
- Update PlayerService to fetch IPs from dashboard DB separately
- Update all routes and services to use dash_db for dashboard tables
- Add dashboard_database_name config option to settings.yaml.example
- Update README with new menu options
2026-05-27 01:02:39 +01:00

88 lines
3.3 KiB
Plaintext

# Dune Awakening Dashboard - Settings
# ==========================================
# All configuration in one file.
# Copy this to settings.yaml and edit for your server.
# Run 'python setup.py' for guided setup.
# ==========================================
# Server connection
server:
host: "YOUR_SERVER_IP" # VM IP address
user: "dune" # SSH username
ssh_key: null # Path to SSH key (null = auto-detect)
# Dashboard
dashboard:
host: "127.0.0.1" # Bind address (use 0.0.0.0 for remote access)
port: 5050 # Port number
debug: false # Set true for development only
secret_key: "change-me-to-random-string" # For session security
ssl_cert: null # Path to SSL cert (null = HTTP only)
ssl_key: null # Path to SSL key (null = HTTP only)
ssl_domain: null # Domain for Let's Encrypt (e.g. dashboard.example.com)
ssl_email: null # Email for Let's Encrypt notifications
http_redirect: false # Optional HTTP -> HTTPS redirect listener
http_redirect_port: 80 # Only needed if http_redirect is true
# For Let's Encrypt or custom CA:
# ssl_cert: /etc/letsencrypt/live/yourdomain/fullchain.pem
# ssl_key: /etc/letsencrypt/live/yourdomain/privkey.pem
# Database (accessed via SSH tunnel)
database:
host: "127.0.0.1" # Local tunnel endpoint
port: 15433 # Local tunnel port
user: "postgres"
password: "postgres"
name: "dune"
schema: "dune"
min_connections: 2
max_connections: 10
dashboard_schema: "dashboard" # Schema for dashboard's own tables (isolated from game DB for backup compatibility)
dashboard_database_name: "dashboard" # Dedicated database for dashboard tables (auto-created on startup)
# Kubernetes
kubernetes:
namespace: "" # Leave empty to auto-detect on first run
battlegroup_script: "/home/dune/.dune/bin/battlegroup"
# Director (Battlegroup Director API)
director:
port: 32479 # Director NodePort service port
# File Browser
filebrowser:
port: 18888 # File Browser service port
# Firewall Security
# Block external internet access to game server services that have no authentication.
# These services are internal and should NOT be exposed to the public internet.
# The dashboard will apply these rules via iptables on the game server VM.
firewall:
block_filebrowser: true # Block port 18888 (filebrowser - has no auth)
block_director: true # Block port 31820 (director - has no auth)
# Cache (seconds)
cache:
chat_pod_ttl: 60
chat_messages_ttl: 10
static_data_ttl: 300
# Authentication
auth:
enabled: true # Set false to disable login (localhost only)
username: "admin" # Change this!
password_hash: null # Argon2 hash (generated by setup.py)
# Never store plaintext passwords here
# Logging
logging:
level: "INFO" # DEBUG, INFO, WARNING, ERROR
file: "logs/dashboard.log"
max_bytes: 10485760 # 10MB
backup_count: 5
# SSL certificate auto-renewal
ssl:
check_interval_hours: 24 # How often to check cert expiry
renewal_days_before_expiry: 30 # Regenerate if expiring within this many days