mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-03-28 19:49:25 +01:00
91 lines
3.6 KiB
Plaintext
91 lines
3.6 KiB
Plaintext
# =============================================================================
|
|
# PROJECT N.O.M.A.D. — Homelab Edition
|
|
# Network Operations Monitoring and Automation Dashboard
|
|
# =============================================================================
|
|
# Copy this file to .env and configure for your environment.
|
|
# All values marked "replaceme" MUST be changed before starting.
|
|
# =============================================================================
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Application Settings
|
|
# -----------------------------------------------------------------------------
|
|
NODE_ENV=production
|
|
PORT=8080
|
|
HOST=0.0.0.0
|
|
LOG_LEVEL=info
|
|
|
|
# Generate a random key: openssl rand -hex 32
|
|
APP_KEY=replaceme
|
|
|
|
# The external URL where Nomad will be accessed (used for links, redirects)
|
|
# Examples: http://192.168.1.100:8080, https://nomad.home.local
|
|
URL=http://localhost:8080
|
|
|
|
# Optional: Base URL path if running behind a reverse proxy with a subpath
|
|
# BASE_URL=/
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Database (MySQL 8.0)
|
|
# -----------------------------------------------------------------------------
|
|
DB_HOST=nomad-database
|
|
DB_PORT=3306
|
|
DB_DATABASE=nomad
|
|
DB_USER=nomad
|
|
DB_PASSWORD=replaceme
|
|
DB_SSL=false
|
|
|
|
# MySQL root password (used for initial database creation)
|
|
MYSQL_ROOT_PASSWORD=replaceme
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Redis Cache / Queue
|
|
# -----------------------------------------------------------------------------
|
|
REDIS_HOST=nomad-cache
|
|
REDIS_PORT=6379
|
|
|
|
# Optional: Redis password (uncomment to enable)
|
|
# REDIS_PASSWORD=
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Storage Paths (inside container — mapped via Docker volumes)
|
|
# -----------------------------------------------------------------------------
|
|
# Path where Nomad stores content (ZIM files, maps, uploads)
|
|
NOMAD_STORAGE_PATH=/app/storage
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# NAS / Host Storage Mapping
|
|
# -----------------------------------------------------------------------------
|
|
# Set these to your NAS storage paths on the HOST system.
|
|
# These are used in docker-compose.yml volume mappings.
|
|
#
|
|
# Unraid example: /mnt/user/appdata/project-nomad
|
|
# TrueNAS example: /mnt/pool/apps/project-nomad
|
|
# Linux example: /opt/project-nomad
|
|
NOMAD_DATA_DIR=/opt/project-nomad
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Reverse Proxy Settings
|
|
# -----------------------------------------------------------------------------
|
|
# Set to 'true' if running behind a TLS-terminating reverse proxy
|
|
# TRUSTED_PROXY=false
|
|
|
|
# Trusted proxy IP ranges (comma-separated CIDR)
|
|
# TRUSTED_PROXY_IPS=172.16.0.0/12,192.168.0.0/16,10.0.0.0/8
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Monitoring Agent Settings (optional)
|
|
# -----------------------------------------------------------------------------
|
|
# AGENT_SECRET=replaceme
|
|
# AGENT_PORT=9100
|
|
# AGENT_COLLECT_INTERVAL=30
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Optional: External API URL for Nomad benchmark leaderboard
|
|
# -----------------------------------------------------------------------------
|
|
# NOMAD_API_URL=https://api.projectnomad.io
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Optional: Internet connectivity test URL
|
|
# -----------------------------------------------------------------------------
|
|
# INTERNET_STATUS_TEST_URL=https://connectivity-check.ubuntu.com
|