Audience: Admin

Configuration Files

This document provides a complete reference for all critical configuration and state files within the NeuralDrive appliance.

Master File Inventory

FilePurposeFormatOwner
/etc/neuraldrive/ollama.confOllama baked-in defaultsKEY=VALUEroot:neuraldrive-admin
/var/lib/neuraldrive/config/ollama.confPersistent Ollama overridesKEY=VALUEroot:neuraldrive-admin
/etc/neuraldrive/config.yamlTUI overlay fallback configYAMLroot:neuraldrive-admin
/var/lib/neuraldrive/config/config.yamlPersistent TUI configurationYAMLroot:neuraldrive-admin
/var/lib/neuraldrive/config/api.keyPersistent API keyplaintextroot:root (600)
/etc/neuraldrive/api.keySystem API key (synced)plaintextroot:root (600)
/var/lib/neuraldrive/config/credentials.confPersistent credentialsKEY=VALUEroot:root (600)
/etc/neuraldrive/webui.envOpen WebUI configurationKEY=VALUEroot:neuraldrive-admin
/etc/neuraldrive/caddy.envCaddy API key environmentKEY=VALUEroot:neuraldrive-admin
/etc/neuraldrive/api.envSystem API environmentKEY=VALUEroot:neuraldrive-admin
/etc/neuraldrive/CaddyfileCaddy reverse proxy configurationCaddyfileroot:neuraldrive-caddy
/etc/neuraldrive/nftables.confGlobal firewall rulesnftablesroot:root
/etc/neuraldrive/neuraldrive-models.yamlModel catalog definitionsYAMLroot:neuraldrive-admin
/etc/neuraldrive/versionBuild version stringplaintextroot:root
/etc/neuraldrive/tls/server.crtSystem TLS certificatePEMroot:neuraldrive-caddy
/etc/neuraldrive/tls/server.keySystem TLS private keyPEMroot:neuraldrive-caddy (600)
/etc/neuraldrive/tls/neuraldrive-ca.crtRoot CA for clientsPEMroot:root (644)
/etc/neuraldrive/firewall-custom.confUser-defined firewall rulesnftablesroot:root
/run/neuraldrive/gpu.confGPU detection results (at boot)KEY=VALUEroot:root (runtime)

Key Configuration Reference

ollama.conf

Defines the behavior of the underlying LLM inference engine. The Ollama service uses two configuration sources:

  1. /etc/neuraldrive/ollama.conf — baked-in system defaults.
  2. /var/lib/neuraldrive/config/ollama.conf — persistent user overrides.

Values in the persistent file override the system defaults.

OLLAMA_HOST=127.0.0.1:11434
OLLAMA_MODELS=/var/lib/neuraldrive/models/
OLLAMA_KEEP_ALIVE=5m
OLLAMA_MAX_LOADED_MODELS=0
OLLAMA_NUM_PARALLEL=1

OLLAMA_MAX_LOADED_MODELS: Set to 0 for "auto" mode. Ollama automatically manages how many models stay loaded based on available VRAM, using Least Recently Used (LRU) eviction when memory is required for a new request.

webui.env

Configures the Open WebUI chat interface and authentication.

OLLAMA_BASE_URL=http://localhost:11434
DATA_DIR=/var/lib/neuraldrive/webui
ENABLE_SIGNUP=false
DEFAULT_USER_ROLE=user
WEBUI_AUTH=true
WEBUI_NAME=NeuralDrive
ENABLE_EASTER_EGGS=false

api.key

This file contains the master authentication token (nd-xxxx) used to secure both the inference API and the system management API. It is generated during the first-boot initialization and should be treated with high sensitivity.

Caddyfile

NeuralDrive's reverse proxy configuration. It manages TLS termination and routing to internal services.

Note: For instructions on using your own TLS certificates, see TLS Certificates. To modify boot-time behavior, consult Boot Parameters.