Skip to content

Configuration

m1nd is configured via config.yaml in the project root (/opt/m1nd/config.yaml). Most settings can also be changed from the web UI under Settings.

config.yaml Structure

yaml
# Network targets for synthetic monitoring
targets:
  - 8.8.8.8
  - 1.1.1.1
  - 192.168.1.1

# DNS nameservers to test
dns_servers:
  - 8.8.8.8
  - 1.0.0.1

# SNMP settings
snmp:
  community: public
  version: 2c
  targets:
    - 192.168.1.1

# Test intervals (seconds)
intervals:
  ping: 30
  dns: 60
  speedtest: 300
  snmp: 60
  ipsec: 30

# Web server
web:
  host: 0.0.0.0
  port: 8080

# Admin credentials (initial setup)
admin:
  username: admin
  password: m1nd

# Feature flags (Vue 3 frontend)
features:
  v1sion_vue: true
  brain_vue: true
  settings_vue: true
  monitors_vue: true
  synmon_vue: true
  dashboard_vue: true

# SMTP for email alerts
smtp:
  enabled: false
  host: smtp.example.com
  port: 587
  username: ""
  password: ""
  from: "m1nd@example.com"

# LLM for AI Diagnostics
llm:
  provider: openai
  api_key: ""
  model: gpt-4o

Synthetic Monitor Intervals

TestDefaultConfig Key
ICMP Ping30sintervals.ping
DNS Resolution60sintervals.dns
Speedtest5 minintervals.speedtest
SNMP Polling60sintervals.snmp
IPsec Tunnels30sintervals.ipsec

Feature Flags

The Vue 3 frontend is controlled by feature flags. All default to false. When a flag is disabled, the legacy HTML/JS path is rendered unchanged.

yaml
features:
  v1sion_vue: true    # Topology visualiser
  brain_vue: true     # Asset documentation
  settings_vue: true  # Settings panel
  monitors_vue: true  # Uptime monitors
  synmon_vue: true    # Synthetic monitor topology
  dashboard_vue: true # Dashboard command bar

Environment Variables

Configuration can also be set via environment variables:

bash
M1ND_PORT=8080
M1ND_HOST=0.0.0.0

Data Storage

All data is stored in data/m1nd.db (SQLite, WAL mode). The database is created automatically on first run.

/opt/m1nd/
├── config.yaml          # Main configuration
├── data/
│   ├── m1nd.db          # SQLite database
│   ├── ssl/             # SSL certificates
│   └── .backups/        # Update backups

Released under the MIT License.