Skip to content

Environment variables

Aerya edited this page Jul 15, 2026 · 1 revision

Environment variables

Variable Default Description
SECRET_KEY (required) Flask session signing key
GLUETUN_HOST host.docker.internal Gluetun HTTP proxy host
GLUETUN_PROXY_PORT 8887 Gluetun HTTP proxy port
GLUETUN_CONTAINER gluetun-airvpn Gluetun container name
COMPOSE_DIR /compose Path (inside the container) to the Gluetun compose directory
CONTROL_BACKEND auto Control backend: automatic detection, or compose / unraid to force a mode
UNRAID_TEMPLATE_DIR /boot/config/plugins/dockerMan/templates-user Unraid DockerMan template directory, mounted writable when CONTROL_BACKEND=unraid or when the Gluetun container is detected as DockerMan-managed
DATA_DIR /data SQLite database directory
OPENVPN_CONFIG_DIR /openvpn Directory writable by Companion for Custom OpenVPN files
OPENVPN_CONTAINER_DIR /gluetun/openvpn Equivalent path as seen from the Gluetun container
DOCKER_HOST (local socket) Set to tcp://socket-proxy:2375 when using the Tecnativa socket proxy
METRICS_TOKEN (empty) If set, the /metrics endpoint requires Authorization: Bearer <token>; leave empty for open access (standard for internal networks)

Benchmark parameters (streams, duration, warm-up, retry…) are configured in the UI → Settings.


Gluetun Companion

Français

English


🇫🇷 Français · 🇬🇧 English

Clone this wiki locally