Configuration

All configuration is stored in a single SQLite file in a persistent user directory — never inside the npm package folder, so it survives updates.

Database location

  • Linux (and other non-Windows platforms): ~/.config/easy-devops/easy-devops.sqlite
  • Windows, personal: %APPDATA%\easy-devops\easy-devops.sqlite
  • Windows, Server mode: C:\ProgramData\easy-devops\easy-devops.sqlite — the service account and the CLI must share one database, and a virtual service account has no %APPDATA% of its own.

If you are upgrading from v1.0.x, the old package-relative database is copied into the persistent directory once on first run.

Config Fields

FieldDefault (Linux)Default (Windows)Description
dashboardPort64436443Dashboard HTTP port. Takes effect on restart.
dashboardAuthpasswordpasswordpassword or none. none is honoured only while the bind address is loopback.
dashboardBindAddress127.0.0.1127.0.0.1The dashboard listener is loopback-only. This compatibility field is normalized to 127.0.0.1. Remote access uses a local HTTPS reverse proxy or authenticated tunnel.
dashboardPasswordHashemptyemptyThe scrypt hash of the dashboard password. There is no default password: it is set on the first-run screen, or later in the dashboard under Settings → Access and authentication (CLI: Settings → Dashboard Auth). The older plain-text dashboardPassword field is still read, and is migrated to a hash and cleared on the next successful login.
dashboardUinewnewThe React dashboard in dist/ui, or classic for the older EJS page. --classic-ui overrides it for one run.
nginxDir/etc/nginxC:\nginxNginx installation directory
sslDir/etc/easy-devops/sslC:\easy-devops\sslSSL certificate storage root
acmeEmailemptyemptyEmail for the Let's Encrypt account. Issuance is refused until one is set.
acmeChallengePort80898089Loopback port the HTTP-01 listener binds; nginx proxies the challenge path to it.
sslChallengeModeautoautoauto, proxy or standalone. auto keeps nginx running whenever nginx is up.
acmeStagingfalsefalseUse Let's Encrypt staging. Always on for a development data directory, so tests never spend production rate limits.
sslAutoRenewtruetrueRenew HTTP-01 certificates in the background
sslAutoRenewDays77Days before expiry at which a certificate is renewed (1–30)
deployHookoffoffThe listener CI calls to trigger a deployment: enabled, port (6445), bind (loopback unless set to 0.0.0.0), domain
deployDir<data dir>/ez_deploys<data dir>\ez_deploysFolder new deployed apps are created in. null means the default. Changing it never moves an existing app.

First run: no default password

A fresh dashboard has no password at all — there is no built-in account and no default credential. The first visit shows a setup screen. Setting a password requires a one-time setup code that is printed only in the server's terminal or its service log, because POST /api/setup is public by necessity: there is no session to require before the first password exists.

  • Six digits, accepted with or without the space, valid for 24 hours.
  • Issued at dashboard or daemon start while setup is pending. ezz dashboard setup-code issues a new one from the machine itself.
  • Per-IP rate limiting plus a global cap of 20 failed attempts, after which the code is invalidated and only the machine can issue another.
  • Only the hash is stored. The code never appears in an API response, a Socket.io event, or anything sent to the Hub.

The alternative on the setup screen is no password. It is offered only when the dashboard is bound to loopback and the request comes from this machine, and it is stored explicitly as dashboardAuth: "none". If the two settings ever disagree, effectiveAuthMode() falls back to requiring a password.

Listen address

The dashboard process always listens on 127.0.0.1. A remote operator reaches it through an HTTPS reverse proxy or authenticated tunnel running on the same machine. The compatibility field dashboardBindAddress is shown in the dashboard under Settings → Access and authentication and in the CLI under Settings → Listen On, but it cannot expose the plain-HTTP listener on a network interface.

  • No-password mode is offered only for a direct local request with no forwarding headers. A request through a local HTTPS proxy or tunnel requires a session.
  • Installs that previously stored a public bind are migrated to loopback. A legacy passwordless choice on a public bind is changed to require a password.
  • A trusted proxy qualifies only when its TCP connection reaches the dashboard from loopback, forwarding declares HTTPS and a single forwarded host, and the request has a same-origin HTTPS Origin.
  • The dashboard checks Host, Origin, forwarding headers and X-EZ-Request in both auth modes — see the API transport rules.

Database Keys

KeyContents
configDashboard port, auth mode, bind address, UI choice, password hash, nginxDir, sslDir, ACME email, renewal settings, deploy folder
setup-codeHash and counters for the outstanding first-run code. Never the code itself.
system-detectionCached system info (OS, Node, nginx)
domainsJSON array of domain configurations
hub-link / hub-permissionsThe Hub pairing and the per-permission switches. The secret is stored but never returned by an API.
deployAppsDeployed apps, their releases and runs. Environment values are stored on the server only.

Linux permissions

On Linux, nginx service control runs as sudo -n /usr/bin/systemctl … nginx. That works only after a one-time sudoers rule exists. The dashboard is a web server and must never receive your sudo password — so it never asks for one.

  • Dashboard: open Settings → Linux Permissions. It shows the exact commands and whether the rule is already installed. You copy them into a terminal and run them yourself; sudo asks you there.
  • CLI: Settings → Setup Linux Permissions prints the same commands and runs them through the real terminal, so sudo prompts there. Easy DevOps never sees the password.
  • The rule file is validated with visudo -cf before it is installed, so a typo cannot lock you out of sudo.

Exactly five commands are granted in /etc/sudoers.d/easy-devops — no wildcards, no binaries without their arguments:

/usr/bin/systemctl start nginx
/usr/bin/systemctl stop nginx
/usr/bin/systemctl reload nginx
/usr/bin/systemctl restart nginx
/usr/bin/systemctl status nginx

The same setup also creates the certificate directory and nginx's conf.d once and hands them to your account, so no standing grant for mkdir, chown or tee is needed. There is no webroot to hand over: HTTP-01 challenges are answered by a loopback listener, not written to disk.

nginx -t never needs sudo

The config test is read-only and Easy DevOps runs it without sudo. On Linux a non-root nginx -t can print "syntax is ok" and still exit non-zero because it cannot write /run/nginx.pid; Easy DevOps treats the output text as the verdict, not the exit code alone.