Skip to content

Configuration

SimpleDeploy uses two config files:

  1. Server config (/etc/simpledeploy/config.yaml) - server-side settings
  2. Client config (~/.simpledeploy/config.yaml) - remote connection contexts

Generate defaults with simpledeploy init --config /etc/simpledeploy/config.yaml.

# Where SimpleDeploy stores its SQLite database and local backups
data_dir: /var/lib/simpledeploy
# Directory watched for app compose files (each subdirectory = one app)
apps_dir: /etc/simpledeploy/apps
# Caddy reverse proxy listen address (HTTPS when TLS is enabled)
listen_addr: ":443"
# Optional HTTP listener. When set and TLS is enabled, every request to this
# port is 308-redirected to https://. Leave empty to disable.
http_listen_addr: ":80"
# Optional extra listen addresses for the HTTPS proxy. Same routes, TLS and
# certs as listen_addr (routing stays by SNI/Host). Example: gRPC clients
# that default to port 50051.
# extra_listen_addrs: [":50051"]
# Management API + dashboard port
management_port: 8443
# Management bind address. Default "127.0.0.1" keeps the dashboard local-only;
# front it with Caddy on a manage.<domain> route, or set to "" (or "0.0.0.0")
# to bind every interface (legacy behavior, exposes plain HTTP).
management_addr: "127.0.0.1"
# Management domain (for TLS cert)
domain: manage.example.com
# Public hostname or IP used to build sslip.io auto-domains for template
# "Quick test" deploys. Optional. Editable at runtime via the dashboard
# (Save as default) or PUT /api/system/public-host.
public_host: ""
# TLS configuration
tls:
mode: auto # auto (Let's Encrypt) | custom | off
email: admin@example.com # ACME account email (required for auto)
# Secret for encrypting stored credentials and signing JWTs.
# `simpledeploy init` generates one; otherwise use `openssl rand -hex 32`.
# Known placeholder values log a warning and are not used to sign sessions.
master_secret: "<64 random hex characters>"
# Activity log retention in days (0 = keep forever, default 365)
audit_retention_days: 365
# Metrics collection and retention
metrics:
tiers:
- name: raw
interval: 10s # collection interval
retention: 24h
- name: 1m
retention: 7d
- name: 5m
retention: 30d
- name: 1h
retention: 8760h # 1 year
# Management API rate limit, per client IP. App traffic is limited only by
# per-app simpledeploy.ratelimit.* labels.
ratelimit:
requests: 200
window: 60s
# Default registries applied to all apps (names reference stored registries)
registries:
- ghcr-org
- my-ecr
# Two-way git sync (optional). See docs/operations/git-sync.md for setup.
git_sync:
enabled: false
remote: git@github.com:owner/repo.git
branch: main
author_name: SimpleDeploy
author_email: bot@simpledeploy.local
ssh_key_path: "" # path to private key file; leave empty for system default
https_username: "" # for HTTPS remotes instead of SSH
https_token: ""
poll_interval: 60s
webhook_secret: "" # set to enable POST /api/git/webhook
poll_enabled: true # set false to rely solely on webhooks
auto_push_enabled: true # set false for pull-only mode
auto_apply_enabled: true # set false to review before applying
webhook_enabled: true # set false to block webhook syncs
Field Type Default Description
data_dir string /var/lib/simpledeploy Database and backup storage
apps_dir string /etc/simpledeploy/apps Watched directory for compose files
listen_addr string :443 Reverse proxy listen address (HTTPS)
http_listen_addr string :80 (when tls.mode is auto or local) Plain-HTTP listener that 308-redirects to HTTPS. Set explicitly to "" to disable. Ignored when tls.mode: off.
extra_listen_addrs list of string [] Additional host:port listeners for the HTTPS proxy server, e.g. [":50051"]. Every listener serves the same routes, TLS policies and certificates over HTTP/1.1 and HTTP/2 (no HTTP/3). Must not repeat listen_addr, http_listen_addr or each other. Open the ports (TCP) in your firewall.
management_port int 8443 Management API port
management_addr string 127.0.0.1 Management API bind address. Default keeps the dashboard local-only. Set to "" (or 0.0.0.0) to expose on every interface.
domain string - Management UI domain. Reserved: non-super_admin users cannot set it as an app endpoint domain.
public_host string "" Server hostname/IP used for sslip.io auto-domains in template Quick test mode. Editable at runtime.
tls.mode string auto TLS mode: auto, custom, off, local
tls.email string - ACME email (required for auto TLS)
master_secret string required Encryption/signing key
audit_retention_days int 365 Activity log retention in days; 0 = keep forever
metrics.tiers list see above Metrics rollup tiers
ratelimit.requests int 200 Management API requests per window, per client IP
ratelimit.window string 60s Management API rate limit window
ratelimit.burst int 50 Reserved, currently ignored. Per-app burst is the simpledeploy.ratelimit.burst label
ratelimit.by string ip Reserved, currently ignored (the management API always limits by IP)
registries list [] Default registry names for all apps
allowed_bind_paths list of string [] Absolute host folders apps may bind-mount even though they sit under a protected system folder (e.g. ["/home/media"]). SimpleDeploy’s data folder and other apps’ folders stay protected. Do not list parents of sensitive folders such as /var or /etc. See compose security validation.
git_sync.enabled bool false Enable two-way git sync
git_sync.remote string - Git remote URL (required if enabled); SSH or HTTPS
git_sync.branch string main Branch to sync against
git_sync.author_name string SimpleDeploy Git commit author name
git_sync.author_email string bot@simpledeploy.local Git commit author email
git_sync.ssh_key_path string "" Path to SSH private key; empty uses the system default
git_sync.https_username string "" Username for HTTPS remotes
git_sync.https_token string "" Token/password for HTTPS remotes
git_sync.poll_interval duration 60s How often to poll the remote
git_sync.webhook_secret string "" HMAC secret; when set, enables POST /api/git/webhook
git_sync.poll_enabled bool true Run the background poll loop; set false to rely solely on webhooks
git_sync.auto_push_enabled bool true Auto-commit and push local config changes; set false for pull-only mode
git_sync.auto_apply_enabled bool true Auto-apply fetched remote commits; set false to review before applying
git_sync.webhook_enabled bool true Accept webhook-triggered syncs; set false to block during maintenance

See Git sync for setup and operational details.

See TLS and HTTPS for the full mode breakdown and tradeoffs.

Each tier defines an aggregation level and retention period:

Tier Resolution Default Retention Query Range
raw 10s 24h last hour
1m 1 minute 7 days last 24h
5m 5 minutes 30 days last week
1h 1 hour 1 year beyond 1 week

The API auto-selects the appropriate tier based on the requested time range.

Retention values support Go duration format (24h, 168h) and day format (7d, 30d).

See Capacity and sizing for row counts, DB size estimates by app count, and tuning examples.

Stored at ~/.simpledeploy/config.yaml. Managed via simpledeploy context commands.

contexts:
production:
url: https://manage.myserver.com
api_key: sd_abc123...
staging:
url: https://manage.staging.myserver.com
api_key: sd_def456...
current_context: production
Terminal window
simpledeploy context add production --url https://manage.example.com --api-key sd_...
simpledeploy context use production
simpledeploy context list

All remote commands (apply, remove, list, pull, diff, sync) use the current context automatically.