v2.31.0-dev7 9ef6929

index.md RawHistoryFolder

Configuration Overview

Gordon uses a single TOML configuration file located at ~/.config/gordon/gordon.toml.

Configuration File Location

Location Purpose
~/.config/gordon/gordon.toml Default configuration file
Custom path via --config flag gordon serve --config /path/to/config.toml

Minimal Configuration

[server]
port = 8080
registry_port = 5000
gordon_domain = "gordon.mydomain.com"

[routes]
"app.mydomain.com" = "myapp:latest"

Note: gordon_domain is the canonical key. Migrate older registry_domain values before restarting.

Full Configuration Reference

For a complete list of all configuration options with their default values, see the Configuration Reference.

Note: This example shows production-style paths. Default paths use ~/.gordon/ for user installations.

# Server settings
[server]
port = 8088                              # HTTP proxy port (default: 8088)
registry_port = 5000                     # Registry port (default: 5000)
gordon_domain = "gordon.mydomain.com"    # Required: Gordon domain (registry + API)
# data_dir = "~/.gordon"                 # Default for user installations

# Authentication (includes secrets backend)
[auth]
enabled = true                           # Enable registry authentication (default: true)
secrets_backend = "pass"                 # "pass", "sops", or "unsafe"
token_secret = "gordon/auth/token_secret"  # Required: JWT signing secret
token_expiry = "30d"                     # Duration (1y, 30d, 2w) or 0 for never
# Token-only authentication (password login was removed in v2.30.0)

# API rate limiting
[api.rate_limit]
enabled = true                           # Enable rate limiting (default: true)
global_rps = 500                         # Max requests/second globally
per_ip_rps = 50                          # Max requests/second per IP
burst = 100                              # Burst size
trusted_proxies = []                     # IPs/CIDRs trusted for X-Forwarded-For

# Deploy behavior
[deploy]
pull_policy = "if-tag-changed"           # always, if-not-present, if-tag-changed
readiness_mode = "auto"                  # auto, docker-health, delay
health_timeout = "90s"                   # Max wait for health-based readiness
readiness_delay = "5s"                   # Wait after running before ready
drain_mode = "auto"                      # auto, inflight, delay
drain_timeout = "30s"                    # Max wait for in-flight drain
drain_delay = "2s"                       # Wait after proxy invalidation before stopping the old container

# Logging
[logging]
level = "info"                           # trace, debug, info, warn, error
format = "console"                       # console or json

[logging.file]
enabled = true
path = "~/.gordon/logs/gordon.log"       # Default location
max_size = 100                           # MB before rotation
max_backups = 3                          # Old files to keep
max_age = 28                             # Days to keep

[logging.container_logs]
enabled = true
dir = "~/.gordon/logs/containers"        # Default location
max_size = 100
max_backups = 3
max_age = 28

# Telemetry (OpenTelemetry)
[telemetry]
enabled = true                           # Enable OTLP export (default: false)
endpoint = "http://localhost:5080/api/default"  # OTLP HTTP endpoint
auth_token = ""                          # Base64 user:password for Basic auth
traces = true                            # Export traces
metrics = true                           # Export metrics
logs = true                              # Bridge zerolog to OTLP logs
trace_sample_rate = 1.0                  # 0.0 = none, 1.0 = all

# Environment variables
[env]
dir = "~/.gordon/env"                    # Default location

# Volume settings
[volumes]
auto_create = true                       # Auto-create from Dockerfile VOLUME
prefix = "gordon"                        # Volume name prefix
preserve = true                          # Keep volumes on container removal

# Network isolation
[network_isolation]
enabled = true                           # Per-app isolated networks
network_prefix = "gordon"                # Network name prefix

# Auto-route
[auto_route]
enabled = false                          # Auto-create routes from image names

# Routes (required)
[routes]
"app.mydomain.com" = "myapp:latest"
"api.mydomain.com" = "myapi:v2.1.0"

# Network groups
[network_groups]
"backend" = ["app.mydomain.com", "api.mydomain.com"]

# Attachments
[attachments]
"app.mydomain.com" = ["postgres:latest", "redis:latest"]
"backend" = ["rabbitmq:latest"]

# Backups
[backups]
enabled = true
schedule = "daily"                        # "hourly", "daily", "weekly", "monthly"
storage_dir = "~/.gordon/backups"

[backups.retention]
hourly = 24
daily = 7
weekly = 4
monthly = 12

# Images
[images.prune]
enabled = false
schedule = "daily"
keep_last = 3

Configuration Sections

Section Description Documentation
[server] Core server settings Server
[auth] Authentication and secrets backend Auth
[api.rate_limit] Rate limiting configuration Rate Limiting
[deploy] Deployment behavior Deploy
[logging] Logging configuration Logging
[telemetry] OpenTelemetry observability export Telemetry
[env] Environment variable settings Environment
[volumes] Volume management Volumes
[network_isolation] Network isolation settings Network Isolation
[auto_route] Automatic route creation Auto Route
[routes] Domain to image mapping Routes
[external_routes] Non-containerized service proxying External Routes
[network_groups] Shared service networks Network Groups
[attachments] Service dependencies Attachments
[backups] Database backups Backups
[images.prune] Scheduled image cleanup Images

Default Values

Setting Default
server.port 8088
server.registry_port 5000
server.data_dir ~/.gordon
auth.enabled true
auth.secrets_backend "unsafe"
auth.token_expiry "30d"
api.rate_limit.enabled true
api.rate_limit.global_rps 500
api.rate_limit.per_ip_rps 50
api.rate_limit.burst 100
api.rate_limit.trusted_proxies []
deploy.pull_policy "if-tag-changed"
deploy.readiness_mode "auto"
deploy.health_timeout "90s"
deploy.readiness_delay "5s"
deploy.drain_mode "auto"
deploy.drain_timeout "30s"
deploy.drain_delay "2s"
logging.level "info"
logging.format "console"
logging.file.enabled false
logging.file.max_size 100
logging.file.max_backups 3
logging.file.max_age 28
logging.container_logs.enabled true
volumes.auto_create true
volumes.prefix "gordon"
volumes.preserve true
network_isolation.enabled true
auto_route.enabled false
backups.enabled false
backups.schedule "daily" ("hourly", "daily", "weekly", "monthly")
images.prune.enabled false
images.prune.schedule "daily"
images.prune.keep_last 3
telemetry.enabled false
telemetry.endpoint ""
telemetry.auth_token ""
telemetry.traces true
telemetry.metrics true
telemetry.logs true
telemetry.trace_sample_rate 1.0

When auth.enabled=false, Gordon runs in local-only mode: /admin/* is disabled and /v2/* is loopback-only.

Hot Reload

Gordon watches the configuration file and reloads automatically when changes are detected. You can also trigger a manual reload:

gordon reload

Hot-reloaded (no restart needed)

Setting
server.gordon_domain (registry domain)
server.registry_port
server.max_proxy_body_size
server.max_blob_chunk_size
server.max_proxy_response_size
server.max_concurrent_conns

Note: Routes are hot-reloaded from the config file. You can still use the API or CLI (gordon routes add/update/remove) for live route changes.

Requires restart

Setting
server.port
server.data_dir
auth.*
deploy.readiness_mode
deploy.readiness_delay
deploy.health_timeout
deploy.drain_mode
deploy.drain_timeout

Environment Variable Override

Configuration values can be overridden with environment variables:

GORDON_SERVER_PORT=8080 gordon serve
GORDON_LOGGING_LEVEL=debug gordon serve

Pattern: GORDON_SECTION_KEY (uppercase, underscores instead of dots)

source
1# Configuration Overview
2
3Gordon uses a single TOML configuration file located at `~/.config/gordon/gordon.toml`.
4
5## Configuration File Location
6
7| Location | Purpose |
8|----------|---------|
9| `~/.config/gordon/gordon.toml` | Default configuration file |
10| Custom path via `--config` flag | `gordon serve --config /path/to/config.toml` |
11
12## Minimal Configuration
13
14```toml
15[server]
16port = 8080
17registry_port = 5000
18gordon_domain = "gordon.mydomain.com"
19
20[routes]
21"app.mydomain.com" = "myapp:latest"
22```
23
24> **Note:** `gordon_domain` is the canonical key. Migrate older `registry_domain` values before restarting.
25
26## Full Configuration Reference
27
28For a complete list of all configuration options with their default values, see the [Configuration Reference](./reference.md).
29
30> **Note:** This example shows production-style paths. Default paths use `~/.gordon/` for user installations.
31
32```toml
33# Server settings
34[server]
35port = 8088                              # HTTP proxy port (default: 8088)
36registry_port = 5000                     # Registry port (default: 5000)
37gordon_domain = "gordon.mydomain.com"    # Required: Gordon domain (registry + API)
38# data_dir = "~/.gordon"                 # Default for user installations
39
40# Authentication (includes secrets backend)
41[auth]
42enabled = true                           # Enable registry authentication (default: true)
43secrets_backend = "pass"                 # "pass", "sops", or "unsafe"
44token_secret = "gordon/auth/token_secret"  # Required: JWT signing secret
45token_expiry = "30d"                     # Duration (1y, 30d, 2w) or 0 for never
46# Token-only authentication (password login was removed in v2.30.0)
47
48# API rate limiting
49[api.rate_limit]
50enabled = true                           # Enable rate limiting (default: true)
51global_rps = 500                         # Max requests/second globally
52per_ip_rps = 50                          # Max requests/second per IP
53burst = 100                              # Burst size
54trusted_proxies = []                     # IPs/CIDRs trusted for X-Forwarded-For
55
56# Deploy behavior
57[deploy]
58pull_policy = "if-tag-changed"           # always, if-not-present, if-tag-changed
59readiness_mode = "auto"                  # auto, docker-health, delay
60health_timeout = "90s"                   # Max wait for health-based readiness
61readiness_delay = "5s"                   # Wait after running before ready
62drain_mode = "auto"                      # auto, inflight, delay
63drain_timeout = "30s"                    # Max wait for in-flight drain
64drain_delay = "2s"                       # Wait after proxy invalidation before stopping the old container
65
66# Logging
67[logging]
68level = "info"                           # trace, debug, info, warn, error
69format = "console"                       # console or json
70
71[logging.file]
72enabled = true
73path = "~/.gordon/logs/gordon.log"       # Default location
74max_size = 100                           # MB before rotation
75max_backups = 3                          # Old files to keep
76max_age = 28                             # Days to keep
77
78[logging.container_logs]
79enabled = true
80dir = "~/.gordon/logs/containers"        # Default location
81max_size = 100
82max_backups = 3
83max_age = 28
84
85# Telemetry (OpenTelemetry)
86[telemetry]
87enabled = true                           # Enable OTLP export (default: false)
88endpoint = "http://localhost:5080/api/default"  # OTLP HTTP endpoint
89auth_token = ""                          # Base64 user:password for Basic auth
90traces = true                            # Export traces
91metrics = true                           # Export metrics
92logs = true                              # Bridge zerolog to OTLP logs
93trace_sample_rate = 1.0                  # 0.0 = none, 1.0 = all
94
95# Environment variables
96[env]
97dir = "~/.gordon/env"                    # Default location
98
99# Volume settings
100[volumes]
101auto_create = true                       # Auto-create from Dockerfile VOLUME
102prefix = "gordon"                        # Volume name prefix
103preserve = true                          # Keep volumes on container removal
104
105# Network isolation
106[network_isolation]
107enabled = true                           # Per-app isolated networks
108network_prefix = "gordon"                # Network name prefix
109
110# Auto-route
111[auto_route]
112enabled = false                          # Auto-create routes from image names
113
114# Routes (required)
115[routes]
116"app.mydomain.com" = "myapp:latest"
117"api.mydomain.com" = "myapi:v2.1.0"
118
119# Network groups
120[network_groups]
121"backend" = ["app.mydomain.com", "api.mydomain.com"]
122
123# Attachments
124[attachments]
125"app.mydomain.com" = ["postgres:latest", "redis:latest"]
126"backend" = ["rabbitmq:latest"]
127
128# Backups
129[backups]
130enabled = true
131schedule = "daily"                        # "hourly", "daily", "weekly", "monthly"
132storage_dir = "~/.gordon/backups"
133
134[backups.retention]
135hourly = 24
136daily = 7
137weekly = 4
138monthly = 12
139
140# Images
141[images.prune]
142enabled = false
143schedule = "daily"
144keep_last = 3
145```
146
147## Configuration Sections
148
149| Section | Description | Documentation |
150|---------|-------------|---------------|
151| `[server]` | Core server settings | [Server](./server.md) |
152| `[auth]` | Authentication and secrets backend | [Auth](./auth.md) |
153| `[api.rate_limit]` | Rate limiting configuration | [Rate Limiting](./rate-limiting.md) |
154| `[deploy]` | Deployment behavior | [Deploy](./deploy.md) |
155| `[logging]` | Logging configuration | [Logging](./logging.md) |
156| `[telemetry]` | OpenTelemetry observability export | [Telemetry](./telemetry.md) |
157| `[env]` | Environment variable settings | [Environment](./env.md) |
158| `[volumes]` | Volume management | [Volumes](./volumes.md) |
159| `[network_isolation]` | Network isolation settings | [Network Isolation](./network-isolation.md) |
160| `[auto_route]` | Automatic route creation | [Auto Route](./auto-route.md) |
161| `[routes]` | Domain to image mapping | [Routes](./routes.md) |
162| `[external_routes]` | Non-containerized service proxying | [External Routes](./external-routes.md) |
163| `[network_groups]` | Shared service networks | [Network Groups](./network-groups.md) |
164| `[attachments]` | Service dependencies | [Attachments](./attachments.md) |
165| `[backups]` | Database backups | [Backups](./backups.md) |
166| `[images.prune]` | Scheduled image cleanup | [Images](./images.md) |
167
168## Default Values
169
170| Setting | Default |
171|---------|---------|
172| `server.port` | `8088` |
173| `server.registry_port` | `5000` |
174| `server.data_dir` | `~/.gordon` |
175| `auth.enabled` | `true` |
176| `auth.secrets_backend` | `"unsafe"` |
177| `auth.token_expiry` | `"30d"` |
178| `api.rate_limit.enabled` | `true` |
179| `api.rate_limit.global_rps` | `500` |
180| `api.rate_limit.per_ip_rps` | `50` |
181| `api.rate_limit.burst` | `100` |
182| `api.rate_limit.trusted_proxies` | `[]` |
183| `deploy.pull_policy` | `"if-tag-changed"` |
184| `deploy.readiness_mode` | `"auto"` |
185| `deploy.health_timeout` | `"90s"` |
186| `deploy.readiness_delay` | `"5s"` |
187| `deploy.drain_mode` | `"auto"` |
188| `deploy.drain_timeout` | `"30s"` |
189| `deploy.drain_delay` | `"2s"` |
190| `logging.level` | `"info"` |
191| `logging.format` | `"console"` |
192| `logging.file.enabled` | `false` |
193| `logging.file.max_size` | `100` |
194| `logging.file.max_backups` | `3` |
195| `logging.file.max_age` | `28` |
196| `logging.container_logs.enabled` | `true` |
197| `volumes.auto_create` | `true` |
198| `volumes.prefix` | `"gordon"` |
199| `volumes.preserve` | `true` |
200| `network_isolation.enabled` | `true` |
201| `auto_route.enabled` | `false` |
202| `backups.enabled` | `false` |
203| `backups.schedule` | `"daily"` (`"hourly"`, `"daily"`, `"weekly"`, `"monthly"`) |
204| `images.prune.enabled` | `false` |
205| `images.prune.schedule` | `"daily"` |
206| `images.prune.keep_last` | `3` |
207| `telemetry.enabled` | `false` |
208| `telemetry.endpoint` | `""` |
209| `telemetry.auth_token` | `""` |
210| `telemetry.traces` | `true` |
211| `telemetry.metrics` | `true` |
212| `telemetry.logs` | `true` |
213| `telemetry.trace_sample_rate` | `1.0` |
214
215When `auth.enabled=false`, Gordon runs in local-only mode: `/admin/*` is disabled and `/v2/*` is loopback-only.
216
217## Hot Reload
218
219Gordon watches the configuration file and reloads automatically when changes are detected. You can also trigger a manual reload:
220
221```bash
222gordon reload
223```
224
225### Hot-reloaded (no restart needed)
226
227| Setting |
228|---------|
229| `server.gordon_domain` (registry domain) |
230| `server.registry_port` |
231| `server.max_proxy_body_size` |
232| `server.max_blob_chunk_size` |
233| `server.max_proxy_response_size` |
234| `server.max_concurrent_conns` |
235
236> **Note:** Routes are hot-reloaded from the config file. You can still use the API or CLI (`gordon routes add/update/remove`) for live route changes.
237
238### Requires restart
239
240| Setting |
241|---------|
242| `server.port` |
243| `server.data_dir` |
244| `auth.*` |
245| `deploy.readiness_mode` |
246| `deploy.readiness_delay` |
247| `deploy.health_timeout` |
248| `deploy.drain_mode` |
249| `deploy.drain_timeout` |
250
251## Environment Variable Override
252
253Configuration values can be overridden with environment variables:
254
255```bash
256GORDON_SERVER_PORT=8080 gordon serve
257GORDON_LOGGING_LEVEL=debug gordon serve
258```
259
260Pattern: `GORDON_SECTION_KEY` (uppercase, underscores instead of dots)
261
262## Related
263
264- [Server Configuration](./server.md)
265- [Routes Configuration](./routes.md)
266- [External Routes](./external-routes.md)
267- [Authentication](./auth.md)
268- [Telemetry](./telemetry.md)
269- [Backups](./backups.md)
270- [Images](./images.md)

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 7

Tags 106

↑↓ moveenter openesc close