initial commit
Some checks failed
CI / Go — node-agent tests (push) Has been cancelled
CI / Go — edge-gateway build (push) Has been cancelled
CI / Node — lint, typecheck, test, build (push) Has been cancelled

This commit is contained in:
smueller
2026-06-26 10:45:08 +02:00
commit e37ea87b35
118 changed files with 7726 additions and 0 deletions

92
.env.example Normal file
View File

@@ -0,0 +1,92 @@
# =============================================================================
# HexaHost GameCloud — Environment Configuration
# Copy to .env and adjust for your environment. Never commit .env to version control.
# =============================================================================
# --- Application ---
APP_NAME=HexaHost GameCloud
APP_ENV=development
APP_URL=http://localhost:3000
API_URL=http://localhost:3001
TRUSTED_PROXY_COUNT=0
# --- Security ---
SESSION_SECRET=change-me-use-openssl-rand-base64-32
ENCRYPTION_KEY=change-me-use-openssl-rand-base64-32
# --- Database ---
DATABASE_URL=postgresql://gamecloud:gamecloud@localhost:5432/gamecloud
POSTGRES_USER=gamecloud
POSTGRES_PASSWORD=gamecloud
POSTGRES_DB=gamecloud
POSTGRES_PORT=5432
# --- Redis ---
REDIS_URL=redis://localhost:6379
REDIS_PORT=6379
# --- SMTP (Mailpit in development) ---
SMTP_HOST=localhost
SMTP_PORT=1025
SMTP_USER=
SMTP_PASSWORD=
SMTP_FROM=noreply@localhost
SMTP_TLS=false
MAILPIT_UI_PORT=8025
# --- S3 / Object Storage (MinIO in development) ---
S3_ENDPOINT=http://localhost:9000
S3_REGION=us-east-1
S3_BUCKET=gamecloud
S3_ACCESS_KEY=minioadmin
S3_SECRET_KEY=minioadmin
S3_FORCE_PATH_STYLE=true
MINIO_API_PORT=9000
MINIO_CONSOLE_PORT=9001
# --- Reverse Proxy / DNS ---
TRAEFIK_NETWORK=traefik-network
GAME_BASE_DOMAIN=play.example.net
DNS_PROVIDER=rfc2136
RFC2136_SERVER=
RFC2136_KEY_NAME=
RFC2136_KEY_SECRET=
# --- Node Agent ---
NODE_CA_CERT=
NODE_CA_KEY=
NODE_AGENT_PUBLIC_URL=wss://api.example.net/api/v1/nodes/ws
NODE_HEARTBEAT_TIMEOUT=30s
NODE_ID=local-dev-node
NODE_TOKEN=
NODE_AGENT_HEALTH_ADDR=:9100
NODE_HEARTBEAT_INTERVAL=10s
NODE_DATA_DIR=./data/nodes
NODE_TLS_CERT=
NODE_TLS_KEY=
NODE_TLS_SKIP_VERIFY=true
# --- Edge Gateway (Phase 8) ---
EDGE_GATEWAY_ENABLED=false
# --- Catalog Providers ---
MODRINTH_USER_AGENT=HexaHostGameCloud/0.1.0 (contact@example.net)
CURSEFORGE_API_KEY=
# --- Billing ---
BILLING_PROVIDER=internal
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=
# --- Observability ---
OTEL_EXPORTER_OTLP_ENDPOINT=
LOG_LEVEL=info
# --- Service Ports (development) ---
API_PORT=3001
WEB_PORT=3000
# --- WHMCS Integration (optional) ---
WHMCS_INTEGRATION_ID=
WHMCS_API_SECRET=
WHMCS_WEBHOOK_SECRET=