v2.31.0-dev6 8056b57

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"

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 not hot-reloaded from the config file. Use the API or CLI (gordon routes add/update/remove) to manage routes at runtime.

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