Skip to content

Generate config

SimpleDeploy reads its config from /etc/simpledeploy/config.yaml by default. Generate a starter file, then edit three things.

Terminal window
sudo simpledeploy init --config /etc/simpledeploy/config.yaml

That writes a fully commented YAML file with sensible defaults.

Terminal window
sudo vim /etc/simpledeploy/config.yaml

You must set three fields before starting the server:

# Management UI domain (TLS cert is provisioned for this name)
domain: manage.example.com
# TLS via Let's Encrypt
tls:
mode: auto
email: you@example.com # ACME account email
# Encryption + signing key, generated by `init`. NEVER commit this anywhere.
master_secret: "<64 random hex characters>"

init generates a random master_secret for you and refuses to overwrite an existing config (--force replaces the whole file with defaults and a new master_secret, which makes stored credentials unreadable). To set one by hand, use openssl rand -hex 32. Example or placeholder values from the docs log a warning at startup (sessions then use a random key from data_dir), and secrets shorter than 32 characters also log a warning.

# Where SQLite + local backups live
data_dir: /var/lib/simpledeploy
# Watched directory: each subdirectory = one app
apps_dir: /etc/simpledeploy/apps
# Reverse proxy listen address
listen_addr: ":443"
# Management API + dashboard port (used internally by Caddy)
management_port: 8443

For metrics retention, rate-limit defaults, and registry config, see the full Configuration reference.

If they do not already exist:

Terminal window
sudo mkdir -p /var/lib/simpledeploy
sudo mkdir -p /etc/simpledeploy/apps
Terminal window
sudo simpledeploy serve --config /etc/simpledeploy/config.yaml --check

(or just start the service: errors print to journalctl -u simpledeploy).

Next: create the admin user.