v2.31.0-dev12 6a38a35

reference.md RawHistoryFolder

Configuration Reference

Complete configuration reference with all options and their default values.

Full Configuration Example

# =============================================================================
# SERVER
# =============================================================================
[server]
port = 8088                                  # HTTP proxy port
registry_port = 5000                         # Container registry port
tls_port = 8443                              # HTTPS proxy port (0 = disabled, no internal CA)
tls_cert_file = ""                           # PEM cert path (optional, for static TLS alongside internal CA)
tls_key_file = ""                            # PEM key path (optional, must be set with tls_cert_file)
force_https_redirect = false                 # Redirect all HTTP traffic to HTTPS (for direct-access setups)
gordon_domain = ""                           # Required: Gordon domain (registry + API)
data_dir = "~/.gordon"                       # Data directory (varies by install type)
max_blob_chunk_size = "95MB"                 # Max size per registry blob upload chunk
max_blob_size = "1GB"                        # Max cumulative size per registry blob/layer upload
registry_allowed_ips = []                    # IPs or CIDR ranges allowed to access the registry (empty = allow all)
proxy_allowed_ips = []                       # IPs or CIDR ranges allowed to reach the proxy (empty = allow all, e.g. Cloudflare IPs)
registry_listen_address = ""                 # Bind address for registry (empty = all interfaces, "127.0.0.1" = loopback only)

# =============================================================================
# AUTHENTICATION (required - Gordon won't start without credentials configured)
# =============================================================================
[auth]
enabled = true                               # Enable registry authentication (default: true)
secrets_backend = "unsafe"                   # "pass", "sops", or "unsafe"
token_secret = ""                            # Path in secrets backend to JWT signing key (REQUIRED)
token_expiry = "720h"                        # Token expiry duration (720h = 30 days)
access_token_ttl = "15m"                     # Ephemeral access token lifetime (default: 15m)

# =============================================================================
# PUBLIC TLS / ACME
# =============================================================================
[tls.acme]
enabled = false                              # Enable public ACME certificates (requires server.tls_port > 0)
email = ""                                   # ACME account email when enabled
challenge = "auto"                           # "auto", "http-01", or "cloudflare-dns-01"
obtain_batch_size = 1                         # New certificate orders per reconcile run

# =============================================================================
# API (applies to both Registry and Admin endpoints)
# =============================================================================
[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 client IP
burst = 100                                  # Burst size for rate limiters
trusted_proxies = []                         # IPs/CIDRs trusted to set X-Forwarded-For

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

[logging.file]
enabled = false                              # Enable file logging
path = ""                                    # Log file path (default: {data_dir}/logs/gordon.log)
max_size = 100                               # Max size in MB before rotation
max_backups = 3                              # Number of old files to keep
max_age = 28                                 # Days to keep old files

[logging.container_logs]
enabled = true                               # Enable container log collection
dir = ""                                     # Log directory (default: {data_dir}/container-logs)
max_size = 100                               # Max size in MB before rotation
max_backups = 3                              # Number of old files to keep
max_age = 28                                 # Days to keep old files

# =============================================================================
# TELEMETRY (OpenTelemetry)
# =============================================================================
[telemetry]
enabled = false                              # Enable OTLP telemetry export
endpoint = ""                                # OTLP HTTP endpoint URL
auth_token = ""                              # Base64-encoded user:password for Basic auth
traces = true                                # Export distributed traces
metrics = true                               # Export metrics
logs = true                                  # Bridge zerolog output to OTLP logs
trace_sample_rate = 1.0                      # Fraction of traces to sample (0.0–1.0)

# =============================================================================
# ENVIRONMENT
# =============================================================================
[env]
dir = ""                                     # Env files directory (default: {data_dir}/env)

# =============================================================================
# DEPLOYMENT
# =============================================================================
[deploy]
pull_policy = "if-tag-changed"               # "always", "if-tag-changed", "never"
readiness_mode = "auto"                      # "auto", "docker-health", "delay"
health_timeout = "90s"                       # Max wait for health-based readiness
readiness_delay = "5s"                       # Wait after running before considered ready
drain_mode = "auto"                          # "auto", "inflight", "delay"
drain_timeout = "30s"                        # Max wait for in-flight request drain
drain_delay = "2s"                           # Wait after cache invalidation before old stop

# =============================================================================
# CONTAINERS
# =============================================================================
[containers]
security_profile = "compat"                  # "compat" or "strict"

# =============================================================================
# AUTO-ROUTE
# =============================================================================
[auto_route]
enabled = false                              # Create routes from image labels automatically

# =============================================================================
# NETWORK ISOLATION
# =============================================================================
[network_isolation]
enabled = true                               # Enable per-app Docker networks
network_prefix = "gordon"                    # Prefix for created networks
internal = false                             # Create Docker internal networks (blocks direct egress)

# =============================================================================
# VOLUMES
# =============================================================================
[volumes]
auto_create = true                           # Auto-create volumes from Dockerfile VOLUME
prefix = "gordon"                            # Volume name prefix
preserve = true                              # Keep volumes when containers are removed

# =============================================================================
# ROUTES
# =============================================================================
[routes]
# "domain.com" = { image = "image:tag" }
# "insecure.domain.com" = { image = "image:tag", https = false }
# Legacy "http://domain.com" keys are read for compatibility and rewritten on save.

# =============================================================================
# EXTERNAL ROUTES
# =============================================================================
[external_routes]
# "domain.com" = "host:port"                 # Proxy to non-container services

# =============================================================================
# NETWORK GROUPS
# =============================================================================
[network_groups]
# "group-name" = ["domain1.com", "domain2.com"]

# =============================================================================
# ATTACHMENTS
# =============================================================================
[attachments]
# "domain-or-group" = ["image1:tag", "image2:tag"]

# =============================================================================
# BACKUPS
# =============================================================================
[backups]
enabled = false                              # Enable backup service
schedule = "daily"                          # "hourly", "daily", "weekly", "monthly"
storage_dir = ""                            # Backup root (default: {data_dir}/backups)

[backups.retention]
hourly = 0                                   # Keep N hourly backups per DB
daily = 0                                    # Keep N daily backups per DB
weekly = 0                                   # Keep N weekly backups per DB
monthly = 0                                  # Keep N monthly backups per DB

# =============================================================================
# IMAGES
# =============================================================================
[images]
allowed_registries = []
require_digest = false

[images.prune]
enabled = false                              # Enable scheduled image cleanup
schedule = "daily"                          # "hourly", "daily", "weekly", "monthly"
keep_last = 3                                # Keep N newest tags per repository

# Note: retention values set to 0 keep no backups for that tier.
# For practical defaults, consider setting daily = 7.

Default Values Summary

Setting Default Description
server.port 8088 HTTP proxy port
server.registry_port 5000 Container registry port
server.tls_port 8443 HTTPS listener port (0 = disabled)
server.tls_cert_file "" PEM cert path for static TLS (optional)
server.tls_key_file "" PEM key path for static TLS (optional)
server.force_https_redirect false Redirect all HTTP to HTTPS (for direct-access setups)
server.gordon_domain "" Required - Gordon domain
server.data_dir ~/.gordon Data directory
server.max_blob_chunk_size "95MB" Max size per registry blob upload chunk
server.max_blob_size "1GB" Max cumulative size per registry blob/layer upload
server.registry_allowed_ips [] IPs or CIDR ranges allowed to access the registry (empty = allow all)
server.proxy_allowed_ips [] IPs or CIDR ranges allowed to reach the proxy (empty = allow all)
server.registry_listen_address "" Bind address for registry (empty = all interfaces)
tls.acme.enabled false Enable public ACME certificates (requires server.tls_port > 0)
tls.acme.email "" ACME account email when enabled
tls.acme.challenge "auto" ACME challenge mode: auto, http-01, or cloudflare-dns-01
tls.acme.obtain_batch_size 1 Maximum new ACME certificate orders per reconcile run
auth.enabled true Enable authentication; when false, run local-only mode (loopback-only /v2/*, /admin/* disabled)
auth.secrets_backend "unsafe" Secrets storage
auth.token_expiry "720h" 30 days
auth.access_token_ttl "15m" Ephemeral access token lifetime
api.rate_limit.enabled true Enable rate limiting
api.rate_limit.global_rps 500 Global requests/second
api.rate_limit.per_ip_rps 50 Per-IP requests/second
api.rate_limit.burst 100 Burst size
api.rate_limit.trusted_proxies [] IPs/CIDRs trusted for X-Forwarded-For
logging.level "info" Log level
logging.format "console" Log format
logging.file.enabled false File logging disabled
logging.file.max_size 100 100 MB
logging.file.max_backups 3 Keep 3 old files
logging.file.max_age 28 28 days
logging.container_logs.enabled true Container logs enabled
logging.container_logs.max_size 100 100 MB
logging.container_logs.max_backups 3 Keep 3 old files
logging.container_logs.max_age 28 28 days
telemetry.enabled false Enable OTLP telemetry export
telemetry.endpoint "" OTLP HTTP endpoint URL
telemetry.auth_token "" Base64 user:password for Basic auth
telemetry.traces true Export distributed traces
telemetry.metrics true Export metrics
telemetry.logs true Bridge zerolog to OTLP logs
telemetry.trace_sample_rate 1.0 Fraction of traces to sample (0.0–1.0)
deploy.pull_policy "if-tag-changed" Pull on tag change
deploy.readiness_mode "auto" Readiness strategy (auto, docker-health, delay)
deploy.health_timeout "90s" Max wait for health-based readiness before deploy fails
deploy.readiness_delay "5s" Delay before container is considered ready
deploy.drain_mode "auto" Drain strategy (auto, inflight, delay)
deploy.drain_timeout "30s" Max wait for in-flight request drain before old stop
deploy.drain_delay "2s" Delay before stopping previous container after cache invalidation
containers.security_profile "compat" Runtime hardening profile: compat preserves existing behavior, strict enables read-only rootfs and narrower capabilities
auto_route.enabled false Auto-route disabled
network_isolation.enabled true Network isolation enabled
network_isolation.network_prefix "gordon" Network prefix
network_isolation.internal false Create Docker internal networks without direct external egress
volumes.auto_create true Auto-create volumes
volumes.prefix "gordon" Volume prefix
volumes.preserve true Keep volumes
backups.enabled false Backup service disabled
backups.schedule "daily" Backup scheduler preset
backups.storage_dir "" Uses {server.data_dir}/backups when empty
backups.retention.hourly 0 Keep no hourly backups by default
backups.retention.daily 0 Keep no daily backups by default (recommend 7)
backups.retention.weekly 0 Keep no weekly backups by default
backups.retention.monthly 0 Keep no monthly backups by default
images.allowed_registries [] Explicit external registry allowlist; empty rejects explicit external registries; dangerous local/private registries are always rejected
images.require_digest false Require digest-pinned references for allowlisted external registries
images.prune.enabled false Scheduled image cleanup disabled
images.prune.schedule "daily" Cleanup schedule preset
images.prune.keep_last 3 Number of recent tags kept per repository

Note: for all backups.retention.* keys, 0 means keep no backups for that retention tier.

Environment Variables

All configuration options can be set via environment variables using the pattern:

GORDON_<SECTION>_<KEY>=value

Examples:

GORDON_SERVER_PORT=8080
GORDON_SERVER_GORDON_DOMAIN=gordon.example.com
GORDON_AUTH_ENABLED=true
GORDON_LOGGING_LEVEL=debug
GORDON_NETWORK_ISOLATION_ENABLED=true

Nested keys use underscores:

GORDON_LOGGING_FILE_ENABLED=true
GORDON_LOGGING_FILE_MAX_SIZE=200
GORDON_LOGGING_CONTAINER_LOGS_ENABLED=false

Security Environment Variables

These special environment variables take priority over config file values:

Variable Description
GORDON_AUTH_TOKEN_SECRET JWT signing secret (avoids storing secret on disk)

Example:

export GORDON_AUTH_TOKEN_SECRET="your-secure-32-char-secret-here"
gordon serve

Pull Policy Options

Value Behavior
"always" Always pull image before deploying
"if-tag-changed" Pull only if image tag differs from running container
"never" Never pull, use local image only

Secrets Backend Options

Value Description
"pass" Unix password manager (recommended for production)
"sops" Mozilla SOPS encrypted files
"unsafe" Plain text files (development only)

Log Level Options

Value Description
"debug" Verbose debugging information
"info" General operational information
"warn" Warning conditions
"error" Error conditions only
source
1# Configuration Reference
2
3Complete configuration reference with all options and their default values.
4
5## Full Configuration Example
6
7```toml
8# =============================================================================
9# SERVER
10# =============================================================================
11[server]
12port = 8088                                  # HTTP proxy port
13registry_port = 5000                         # Container registry port
14tls_port = 8443                              # HTTPS proxy port (0 = disabled, no internal CA)
15tls_cert_file = ""                           # PEM cert path (optional, for static TLS alongside internal CA)
16tls_key_file = ""                            # PEM key path (optional, must be set with tls_cert_file)
17force_https_redirect = false                 # Redirect all HTTP traffic to HTTPS (for direct-access setups)
18gordon_domain = ""                           # Required: Gordon domain (registry + API)
19data_dir = "~/.gordon"                       # Data directory (varies by install type)
20max_blob_chunk_size = "95MB"                 # Max size per registry blob upload chunk
21max_blob_size = "1GB"                        # Max cumulative size per registry blob/layer upload
22registry_allowed_ips = []                    # IPs or CIDR ranges allowed to access the registry (empty = allow all)
23proxy_allowed_ips = []                       # IPs or CIDR ranges allowed to reach the proxy (empty = allow all, e.g. Cloudflare IPs)
24registry_listen_address = ""                 # Bind address for registry (empty = all interfaces, "127.0.0.1" = loopback only)
25
26# =============================================================================
27# AUTHENTICATION (required - Gordon won't start without credentials configured)
28# =============================================================================
29[auth]
30enabled = true                               # Enable registry authentication (default: true)
31secrets_backend = "unsafe"                   # "pass", "sops", or "unsafe"
32token_secret = ""                            # Path in secrets backend to JWT signing key (REQUIRED)
33token_expiry = "720h"                        # Token expiry duration (720h = 30 days)
34access_token_ttl = "15m"                     # Ephemeral access token lifetime (default: 15m)
35
36# =============================================================================
37# PUBLIC TLS / ACME
38# =============================================================================
39[tls.acme]
40enabled = false                              # Enable public ACME certificates (requires server.tls_port > 0)
41email = ""                                   # ACME account email when enabled
42challenge = "auto"                           # "auto", "http-01", or "cloudflare-dns-01"
43obtain_batch_size = 1                         # New certificate orders per reconcile run
44
45# =============================================================================
46# API (applies to both Registry and Admin endpoints)
47# =============================================================================
48[api.rate_limit]
49enabled = true                               # Enable rate limiting (default: true)
50global_rps = 500                             # Max requests/second globally
51per_ip_rps = 50                              # Max requests/second per client IP
52burst = 100                                  # Burst size for rate limiters
53trusted_proxies = []                         # IPs/CIDRs trusted to set X-Forwarded-For
54
55# =============================================================================
56# LOGGING
57# =============================================================================
58[logging]
59level = "info"                               # "debug", "info", "warn", "error"
60format = "console"                           # "console" or "json"
61
62[logging.file]
63enabled = false                              # Enable file logging
64path = ""                                    # Log file path (default: {data_dir}/logs/gordon.log)
65max_size = 100                               # Max size in MB before rotation
66max_backups = 3                              # Number of old files to keep
67max_age = 28                                 # Days to keep old files
68
69[logging.container_logs]
70enabled = true                               # Enable container log collection
71dir = ""                                     # Log directory (default: {data_dir}/container-logs)
72max_size = 100                               # Max size in MB before rotation
73max_backups = 3                              # Number of old files to keep
74max_age = 28                                 # Days to keep old files
75
76# =============================================================================
77# TELEMETRY (OpenTelemetry)
78# =============================================================================
79[telemetry]
80enabled = false                              # Enable OTLP telemetry export
81endpoint = ""                                # OTLP HTTP endpoint URL
82auth_token = ""                              # Base64-encoded user:password for Basic auth
83traces = true                                # Export distributed traces
84metrics = true                               # Export metrics
85logs = true                                  # Bridge zerolog output to OTLP logs
86trace_sample_rate = 1.0                      # Fraction of traces to sample (0.0–1.0)
87
88# =============================================================================
89# ENVIRONMENT
90# =============================================================================
91[env]
92dir = ""                                     # Env files directory (default: {data_dir}/env)
93
94# =============================================================================
95# DEPLOYMENT
96# =============================================================================
97[deploy]
98pull_policy = "if-tag-changed"               # "always", "if-tag-changed", "never"
99readiness_mode = "auto"                      # "auto", "docker-health", "delay"
100health_timeout = "90s"                       # Max wait for health-based readiness
101readiness_delay = "5s"                       # Wait after running before considered ready
102drain_mode = "auto"                          # "auto", "inflight", "delay"
103drain_timeout = "30s"                        # Max wait for in-flight request drain
104drain_delay = "2s"                           # Wait after cache invalidation before old stop
105
106# =============================================================================
107# CONTAINERS
108# =============================================================================
109[containers]
110security_profile = "compat"                  # "compat" or "strict"
111
112# =============================================================================
113# AUTO-ROUTE
114# =============================================================================
115[auto_route]
116enabled = false                              # Create routes from image labels automatically
117
118# =============================================================================
119# NETWORK ISOLATION
120# =============================================================================
121[network_isolation]
122enabled = true                               # Enable per-app Docker networks
123network_prefix = "gordon"                    # Prefix for created networks
124internal = false                             # Create Docker internal networks (blocks direct egress)
125
126# =============================================================================
127# VOLUMES
128# =============================================================================
129[volumes]
130auto_create = true                           # Auto-create volumes from Dockerfile VOLUME
131prefix = "gordon"                            # Volume name prefix
132preserve = true                              # Keep volumes when containers are removed
133
134# =============================================================================
135# ROUTES
136# =============================================================================
137[routes]
138# "domain.com" = { image = "image:tag" }
139# "insecure.domain.com" = { image = "image:tag", https = false }
140# Legacy "http://domain.com" keys are read for compatibility and rewritten on save.
141
142# =============================================================================
143# EXTERNAL ROUTES
144# =============================================================================
145[external_routes]
146# "domain.com" = "host:port"                 # Proxy to non-container services
147
148# =============================================================================
149# NETWORK GROUPS
150# =============================================================================
151[network_groups]
152# "group-name" = ["domain1.com", "domain2.com"]
153
154# =============================================================================
155# ATTACHMENTS
156# =============================================================================
157[attachments]
158# "domain-or-group" = ["image1:tag", "image2:tag"]
159
160# =============================================================================
161# BACKUPS
162# =============================================================================
163[backups]
164enabled = false                              # Enable backup service
165schedule = "daily"                          # "hourly", "daily", "weekly", "monthly"
166storage_dir = ""                            # Backup root (default: {data_dir}/backups)
167
168[backups.retention]
169hourly = 0                                   # Keep N hourly backups per DB
170daily = 0                                    # Keep N daily backups per DB
171weekly = 0                                   # Keep N weekly backups per DB
172monthly = 0                                  # Keep N monthly backups per DB
173
174# =============================================================================
175# IMAGES
176# =============================================================================
177[images]
178allowed_registries = []
179require_digest = false
180
181[images.prune]
182enabled = false                              # Enable scheduled image cleanup
183schedule = "daily"                          # "hourly", "daily", "weekly", "monthly"
184keep_last = 3                                # Keep N newest tags per repository
185
186# Note: retention values set to 0 keep no backups for that tier.
187# For practical defaults, consider setting daily = 7.
188```
189
190## Default Values Summary
191
192| Setting | Default | Description |
193|---------|---------|-------------|
194| `server.port` | `8088` | HTTP proxy port |
195| `server.registry_port` | `5000` | Container registry port |
196| `server.tls_port` | `8443` | HTTPS listener port (0 = disabled) |
197| `server.tls_cert_file` | `""` | PEM cert path for static TLS (optional) |
198| `server.tls_key_file` | `""` | PEM key path for static TLS (optional) |
199| `server.force_https_redirect` | `false` | Redirect all HTTP to HTTPS (for direct-access setups) |
200| `server.gordon_domain` | `""` | **Required** - Gordon domain |
201| `server.data_dir` | `~/.gordon` | Data directory |
202| `server.max_blob_chunk_size` | `"95MB"` | Max size per registry blob upload chunk |
203| `server.max_blob_size` | `"1GB"` | Max cumulative size per registry blob/layer upload |
204| `server.registry_allowed_ips` | `[]` | IPs or CIDR ranges allowed to access the registry (empty = allow all) |
205| `server.proxy_allowed_ips` | `[]` | IPs or CIDR ranges allowed to reach the proxy (empty = allow all) |
206| `server.registry_listen_address` | `""` | Bind address for registry (empty = all interfaces) |
207| `tls.acme.enabled` | `false` | Enable public ACME certificates (requires `server.tls_port > 0`) |
208| `tls.acme.email` | `""` | ACME account email when enabled |
209| `tls.acme.challenge` | `"auto"` | ACME challenge mode: `auto`, `http-01`, or `cloudflare-dns-01` |
210| `tls.acme.obtain_batch_size` | `1` | Maximum new ACME certificate orders per reconcile run |
211| `auth.enabled` | `true` | Enable authentication; when `false`, run local-only mode (loopback-only `/v2/*`, `/admin/*` disabled) |
212| `auth.secrets_backend` | `"unsafe"` | Secrets storage |
213| `auth.token_expiry` | `"720h"` | 30 days |
214| `auth.access_token_ttl` | `"15m"` | Ephemeral access token lifetime |
215| `api.rate_limit.enabled` | `true` | Enable rate limiting |
216| `api.rate_limit.global_rps` | `500` | Global requests/second |
217| `api.rate_limit.per_ip_rps` | `50` | Per-IP requests/second |
218| `api.rate_limit.burst` | `100` | Burst size |
219| `api.rate_limit.trusted_proxies` | `[]` | IPs/CIDRs trusted for X-Forwarded-For |
220| `logging.level` | `"info"` | Log level |
221| `logging.format` | `"console"` | Log format |
222| `logging.file.enabled` | `false` | File logging disabled |
223| `logging.file.max_size` | `100` | 100 MB |
224| `logging.file.max_backups` | `3` | Keep 3 old files |
225| `logging.file.max_age` | `28` | 28 days |
226| `logging.container_logs.enabled` | `true` | Container logs enabled |
227| `logging.container_logs.max_size` | `100` | 100 MB |
228| `logging.container_logs.max_backups` | `3` | Keep 3 old files |
229| `logging.container_logs.max_age` | `28` | 28 days |
230| `telemetry.enabled` | `false` | Enable OTLP telemetry export |
231| `telemetry.endpoint` | `""` | OTLP HTTP endpoint URL |
232| `telemetry.auth_token` | `""` | Base64 `user:password` for Basic auth |
233| `telemetry.traces` | `true` | Export distributed traces |
234| `telemetry.metrics` | `true` | Export metrics |
235| `telemetry.logs` | `true` | Bridge zerolog to OTLP logs |
236| `telemetry.trace_sample_rate` | `1.0` | Fraction of traces to sample (0.0–1.0) |
237| `deploy.pull_policy` | `"if-tag-changed"` | Pull on tag change |
238| `deploy.readiness_mode` | `"auto"` | Readiness strategy (`auto`, `docker-health`, `delay`) |
239| `deploy.health_timeout` | `"90s"` | Max wait for health-based readiness before deploy fails |
240| `deploy.readiness_delay` | `"5s"` | Delay before container is considered ready |
241| `deploy.drain_mode` | `"auto"` | Drain strategy (`auto`, `inflight`, `delay`) |
242| `deploy.drain_timeout` | `"30s"` | Max wait for in-flight request drain before old stop |
243| `deploy.drain_delay` | `"2s"` | Delay before stopping previous container after cache invalidation |
244| `containers.security_profile` | `"compat"` | Runtime hardening profile: `compat` preserves existing behavior, `strict` enables read-only rootfs and narrower capabilities |
245| `auto_route.enabled` | `false` | Auto-route disabled |
246| `network_isolation.enabled` | `true` | Network isolation enabled |
247| `network_isolation.network_prefix` | `"gordon"` | Network prefix |
248| `network_isolation.internal` | `false` | Create Docker internal networks without direct external egress |
249| `volumes.auto_create` | `true` | Auto-create volumes |
250| `volumes.prefix` | `"gordon"` | Volume prefix |
251| `volumes.preserve` | `true` | Keep volumes |
252| `backups.enabled` | `false` | Backup service disabled |
253| `backups.schedule` | `"daily"` | Backup scheduler preset |
254| `backups.storage_dir` | `""` | Uses `{server.data_dir}/backups` when empty |
255| `backups.retention.hourly` | `0` | Keep no hourly backups by default |
256| `backups.retention.daily` | `0` | Keep no daily backups by default (recommend `7`) |
257| `backups.retention.weekly` | `0` | Keep no weekly backups by default |
258| `backups.retention.monthly` | `0` | Keep no monthly backups by default |
259| `images.allowed_registries` | `[]` | Explicit external registry allowlist; empty rejects explicit external registries; dangerous local/private registries are always rejected |
260| `images.require_digest` | `false` | Require digest-pinned references for allowlisted external registries |
261| `images.prune.enabled` | `false` | Scheduled image cleanup disabled |
262| `images.prune.schedule` | `"daily"` | Cleanup schedule preset |
263| `images.prune.keep_last` | `3` | Number of recent tags kept per repository |
264
265Note: for all `backups.retention.*` keys, `0` means keep no backups for that retention tier.
266
267## Environment Variables
268
269All configuration options can be set via environment variables using the pattern:
270
271```
272GORDON_<SECTION>_<KEY>=value
273```
274
275Examples:
276```bash
277GORDON_SERVER_PORT=8080
278GORDON_SERVER_GORDON_DOMAIN=gordon.example.com
279GORDON_AUTH_ENABLED=true
280GORDON_LOGGING_LEVEL=debug
281GORDON_NETWORK_ISOLATION_ENABLED=true
282```
283
284Nested keys use underscores:
285```bash
286GORDON_LOGGING_FILE_ENABLED=true
287GORDON_LOGGING_FILE_MAX_SIZE=200
288GORDON_LOGGING_CONTAINER_LOGS_ENABLED=false
289```
290
291### Security Environment Variables
292
293These special environment variables take priority over config file values:
294
295| Variable | Description |
296|----------|-------------|
297| `GORDON_AUTH_TOKEN_SECRET` | JWT signing secret (avoids storing secret on disk) |
298
299Example:
300```bash
301export GORDON_AUTH_TOKEN_SECRET="your-secure-32-char-secret-here"
302gordon serve
303```
304
305## Pull Policy Options
306
307| Value | Behavior |
308|-------|----------|
309| `"always"` | Always pull image before deploying |
310| `"if-tag-changed"` | Pull only if image tag differs from running container |
311| `"never"` | Never pull, use local image only |
312
313## Secrets Backend Options
314
315| Value | Description |
316|-------|-------------|
317| `"pass"` | Unix password manager (recommended for production) |
318| `"sops"` | Mozilla SOPS encrypted files |
319| `"unsafe"` | Plain text files (development only) |
320
321## Log Level Options
322
323| Value | Description |
324|-------|-------------|
325| `"debug"` | Verbose debugging information |
326| `"info"` | General operational information |
327| `"warn"` | Warning conditions |
328| `"error"` | Error conditions only |
329
330## Related
331
332- [Configuration Overview](./index.md)
333- [Authentication](./auth.md)
334- [Telemetry](./telemetry.md)
335- [Network Isolation](./network-isolation.md)
336- [Volumes](./volumes.md)
337- [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