VpsPilot

Workflow guides

Updated

What the workflows added in 1.0.17 do, what you choose, what protects you, and what they can't do.

Before you start

These are the workflows added in 1.0.17. Every one runs on Debian 12, Ubuntu 22.04 and 24.04, Rocky Linux 9 and AlmaLinux 9, goes through the usual plan, confirm and run steps, and asks before each step that changes the server. Passwords you type are sent to the server in a hidden way and never put in a command line. Under You choose are the form fields as the app names them.

PostgreSQL (Data tab)

What it does. Installs PostgreSQL from your system's packages and starts it. Optionally it also sets who can connect, creates a database user and a database, and opens port 5432 for one address range.

You choose. Install first. Then run it again with Also set who can connect, and the user and database on: Let other servers connect with an Allowed address range, Open port 5432 in the firewall for that range, Remove remote access for this user, Create a database user with User name, Password, Change the password if the user already exists and Database name.

Safety. Out of the box PostgreSQL accepts connections from this server only. Remote access is limited to the range you give, with a password. Each change is a confirmation, and an existing user or database is left as it is unless you turn on the password change. The password never appears in a command line. A snapshot can undo the setting changes.

What it can't do. It does not remove PostgreSQL or its data, and it does not change a user's password unless you ask.

MySQL / MariaDB (Data tab)

What it does. Installs a MariaDB or MySQL server, does the secure setup (no anonymous users, no test database, root only from this server), and can add a database and a user.

You choose. Server (MariaDB or MySQL), Root password (empty means a strong one is made), Create a database user with User name, Password, Change the password if the user already exists, Database name, Allowed from (localhost by default) and Open port 3306 in the firewall for that address.

Safety. The server listens on this server only unless you allow another address. The root password is saved for root only in /root/.my.cnf, and the backup workflows read that file to dump your databases. The secure-setup step warns that programs which log in as root without a password stop working. Every changing step asks first.

What it can't do. Debian 12 has no MySQL package, so there you choose MariaDB. It does not remove a server or its data.

Redis (Data tab)

What it does. Installs Redis, sets a password and a memory limit, and makes it listen on this server only.

You choose. Choose the password myself and Password (otherwise a strong one is made the first time and kept), Memory limit (256mb by default), When memory is full (automatic, refuse new writes, or drop old keys), Let other servers connect with an Allowed address range, and Open port 6379 in the firewall for that range.

Safety. Redis asks for the password from now on, so programs that connected without one stop working, and the step says so before it runs. The password is kept in /root/.vpspilot-redis-password (root only) and in a file Redis reads. Letting other servers connect first checks that a firewall is on, and only your range gets through. The old redis.conf is copied to /var/backups/vpspilot/redis first.

What it can't do. It does not set up replication or clustering.

Keep logs small (Server tab)

What it does. Shows where the log space goes (journal, /var/log, Docker container logs) and, as you choose, caps the system journal, rotates Docker container logs, and makes sure logrotate is installed and runs.

You choose. Limit the size of the system journal with Journal size limit (500M), Rotate Docker container logs with the largest file (10m) and files kept per container (3), Restart Docker now so it applies, and Check that logrotate is installed and runs.

Safety. Cleaning the journal rotates it first, so the space is really freed. Journal entries beyond the limit are deleted and cannot be brought back, and the step says so before it runs. The old journal setting file is kept in /var/backups/vpspilot/logs. The Docker setting is merged into /etc/docker/daemon.json; a file that is not valid JSON, or one that uses another log driver, is left alone. Restarting Docker stops and starts running containers (unless live-restore is on), so it is a separate switch, off by default. If systemd's start limit blocks the first restart, the workflow retries it.

What it can't do. Docker log rotation only applies to containers made after Docker next starts. Existing containers keep their old setting until they are created again.

Email alerts relay (Server tab)

What it does. Lets the server send mail, such as cron output and alerts, through an SMTP provider you already have. It installs msmtp, which only sends and listens on no port, and sends a test mail.

You choose. SMTP server, Port (587 or 465), SMTP user name, SMTP password, Send mail from, Send alerts to, Send root's mail (cron output, system messages) to that address and Send a test mail.

Safety. It refuses to run when another program already provides the sendmail command (Postfix, Exim and others), so it never replaces a mail setup. The password is saved in /etc/msmtp-password and the settings in /etc/msmtprc, both readable by root only. On Rocky Linux and AlmaLinux msmtp is only in EPEL, so the install step adds that repository and tells you so.

What it can't do. Only root's mail is sent, so other accounts can't use the relay. Some providers and new VPS plans block outgoing mail ports; if the test mail times out, ask your host or try the other port.

Lock or remove a user (Server tab)

What it does. Lock the login stops a user from logging in and keeps everything. Unlock the login gives it back exactly as it was. Remove the user ends their programs, archives their home folder, and then deletes the account.

You choose. User, What to do, and Also move their SSH keys aside (Lock only). The first step lists the users that have a login or sudo rights.

Safety. It refuses root, the account VpsPilot is logged in as, system accounts, names that do not exist, and the last administrator. Lock also expires the account, which stops key logins, and ends open sessions. Remove archives the home folder to /var/backups/vpspilot/users and checks the archive before anything is deleted. The folder itself is deleted only when it is a plain /home/<name> folder of that user alone. Each step asks first.

What it can't do. The archives of removed users stay on this server and are not sent by Offsite backups. A service that runs as the user stops working when you lock or remove them.

Memory and slowness check (Server tab)

What it does. A read-only look at why the server feels slow: load, the busiest programs, memory and swap, waiting time, programs killed for lack of memory, disk waits and time taken by the host. It ends with a verdict of OK or ATTENTION lines.

You choose. Nothing to choose.

Safety. It changes and installs nothing. It exits with an error when something needs attention, so a schedule can alert you.

Why did it restart? (Server tab)

What it does. Finds out why the server restarted or went down: a clean shutdown, a crash, power loss, an update reboot, or someone asking for it. It shows the recent starts and stops, the end of the chosen earlier run and one plain sentence.

You choose. Restarts back (1 is the latest) and Keep the journal across restarts.

Safety. The first steps only read. Keeping the journal creates /var/log/journal after you confirm; it uses disk space.

What it can't do. When the log shows no sign of a clean shutdown it says so and does not guess. A server whose journal lives only in memory can't explain an earlier restart until you keep the journal.

Open or close a port (Security tab)

What it does. Allows or blocks one port or a range of ports in the firewall that is switched on: UFW on Debian and Ubuntu, firewalld on Rocky Linux and AlmaLinux.

You choose. What to do (open or close), Port or range (for example 8000-8010), Protocol (TCP, UDP or both) and Only from this address. To close a rule that was made for one address, give the same address.

Safety. The plan shows the firewall as it is, and the change asks first. Closing a port that carries SSH, including the port VpsPilot connects on, is refused. The rule is made at once and kept after a restart, and it is checked afterwards.

What it can't do. It does not switch a firewall on; with none active it stops and points you to Enable firewall. It does not open a port at your provider's firewall.

Was I hacked? check (Security tab)

What it does. A read-only report of signs that someone else got in or changed the server: new or root-level accounts, changed login keys, sudo rules, cron jobs and systemd units, listening ports and outgoing connections, programs running from /tmp, odd SSH logins, and system programs that differ from their package.

You choose. Look back (days) (14), Check system programs against their packages and, on Debian and Ubuntu, Install debsums first.

Safety. The report changes nothing. The only change is the optional install of one small package, and it asks first. A finding is marked ATTENTION, and the few strong signs are marked SERIOUS.

What it can't do. Many findings are normal after you installed or changed something yourself, and no findings never proves a server is clean. The check can't see everything.

Tailscale (Security tab)

What it does. Joins the server to your Tailscale network. Optionally it advertises the server as an exit node or subnet router and makes SSH reachable only over Tailscale. A second run can disconnect it again.

You choose. Auth key, Name in Tailscale, Advertise as exit node, Advertise routes, Allow SSH only over Tailscale and Disconnect this server from Tailscale instead.

Safety. The auth key goes to Tailscale through a temporary file that only root can read and is never shown. Closing SSH on every other interface sets up a rollback first, which puts the firewall back after 5 minutes (and 1 minute after a reboot) unless you test a login over Tailscale from a device on your tailnet and confirm. It refuses to make the change permanent without a login over Tailscale in the SSH log. Stopping at the confirm step rolls back at once.

What it can't do. It needs a running firewall (ufw or firewalld) for the SSH-only option. It can't test the Tailscale address from the phone, so that test is yours. You approve an exit node and routes in the Tailscale admin console, and node keys expire after 180 days unless you turn expiry off there.

WireGuard VPN (Security tab)

What it does. Sets up a WireGuard server on the server, adds or removes peers, and prints the full client configuration to copy into the WireGuard app.

You choose. Set up the server with Server address in the VPN (10.8.0.1/24), Port (51820, UDP), Let clients use this server's internet connection, and Let peers use these services on this server (firewalld only). With it off, What to do with a peer (add or remove), Peer name, Server address clients connect to, DNS for the client, Send all of the client's traffic through the VPN and Show the client config here.

Safety. Keys live in /etc/wireguard, readable by root only, and the server's private key is never shown. The configuration of a new peer contains that peer's private key. It is printed once and also saved in /root/vpspilot-wireguard; turn Show the client config here off to keep it out of the run output. The configuration is tested before it is used, and every step asks first.

What it can't do. Open the WireGuard UDP port at your provider's firewall too. A peer that was not added by this workflow can't be removed by it.

Cloudflare Tunnel (Security tab)

What it does. Publishes a service on the server without opening a port. It installs cloudflared from Cloudflare's own package repository and runs it with your tunnel token.

You choose. Tunnel token, Close ports 80 and 443 to the internet afterwards, and Remove the tunnel from this server.

Safety. The repository key is checked against a pinned fingerprint before it is trusted. The token is kept out of the process list and saved only in /etc/cloudflared/token, readable by root only. Closing ports 80 and 443 is optional and asks twice, because the websites on this server are unreachable if the tunnel is not working.

What it can't do. You make the tunnel and its public hostnames yourself in the Cloudflare dashboard (Zero Trust, Networks, Tunnels). Only close the web ports when your domain is fully on Cloudflare. Removing the tunnel here does not delete it in your Cloudflare account, and its token stays valid until you delete it there.

Install an app (Web tab)

What it does. Installs one app from a catalog of 16 with Docker Compose: Uptime Kuma, Vaultwarden, Nextcloud, Immich, Jellyfin, Pi-hole, AdGuard Home, Gitea, Forgejo, n8n, Syncthing, Dockge, Home Assistant, Paperless-ngx, FreshRSS and Umami. Each app gets its own folder in /opt/vpspilot-apps, a pinned image version, and secrets in a root-only .env file.

You choose. App, Update this app's settings, Port on this server, Admin password (Nextcloud, Pi-hole and Paperless-ngx), Let new people register (Vaultwarden, Gitea, Forgejo), Media folder (Jellyfin), Address for DNS (Pi-hole, AdGuard Home), Sync port (Syncthing), Open the app's port to the internet, Put it behind my domain with HTTPS with Domain name and Email for certificate notices, and Block repeated failed logins (fail2ban).

Safety. An app listens on 127.0.0.1 only, so only the server can reach it, until you open it. First-run safety: Dockge and Syncthing are never offered on a domain or an open port, because anyone who reached their first page could take over (Dockge holds the Docker socket, which means root on the server), and Umami is refused on a domain or an open port until its default password is changed. Apps with a first-run setup page are public as soon as they start, so finish the setup right away. Docker publishes ports past ufw and firewalld, so those do not block an open port. Nextcloud's trusted domain is set when you use a domain, and on port 53 the step to turn off the systemd-resolved stub asks first. The fail2ban jail works for Vaultwarden, Nextcloud, Gitea and Forgejo.

What it can't do. Docker must already be installed. HTTPS needs a real domain whose DNS record points at this server and port 80 open. Running it again on an installed app without Update this app's settings changes nothing and ends Skipped; its summary shows only how the app can really be reached. With that option on, the settings are updated and your data and secrets are kept.

WordPress site (Web tab)

What it does. Sets up a new WordPress site: nginx, PHP-FPM, MariaDB (when no MySQL or MariaDB is there), WordPress from wordpress.org, a database with a generated password, an nginx site with WordPress rules, ports 80 and 443, a Let's Encrypt certificate, and the admin account.

You choose. Domain name, Folder for the WordPress files, Largest upload (MB), Block xmlrpc.php, Finish the WordPress install now (admin account) with site title, admin user, email and password, Free HTTPS certificate (Let's Encrypt), Email for certificate notices and Replace an existing nginx site for this name.

Safety. A copy of an existing WordPress site is saved first. The download is checked against the checksum wordpress.org publishes. The database password goes only into wp-config.php and is shown nowhere. The install page is blocked by nginx from the moment the site answers, so nobody else can claim it. An existing wp-config.php, database, or nginx site is never changed unless you say so.

What it can't do. HTTPS needs a real domain whose DNS record already points at this server. An existing WordPress is not updated here; update it from its dashboard.

Node or Python app behind nginx (Web tab)

What it does. Takes an app from a Git repository, runs it as a systemd service under its own system account, and puts nginx and HTTPS in front of it.

You choose. Kind of app, Domain name, Service and account name, Folder for the app, Repository address, Branch or tag, a private-repository token, Port the app listens on (127.0.0.1), the Node.js version and start command or the Python server and app object, Other settings for .env, a secret setting, Free HTTPS certificate (Let's Encrypt) and Take over an existing site, service or port.

Safety. The app runs as an account with no login shell, never as root, with restart on failure and no new privileges. Its .env file is readable by that account only. The app's own port stays closed to the outside. A name, port or site that something else already uses stops the plan unless you choose to take it over, and a service unit that VpsPilot did not write is never replaced.

What it can't do. To update later, run Deploy from Git with the same folder; the last step prints the values to use. HTTPS needs a real domain pointing at this server; if certbot fails, the run shows certbot's own error lines. A NodeSource Node.js replaces the system's Node.js for every program here.

PHP version for a site (Web tab)

What it does. Installs another PHP version next to the current one and points one nginx site at it.

You choose. Site (the domain in its nginx file), PHP version to use, I accept an unsupported version (no security fixes) and Remove the old PHP version afterwards.

Safety. The old PHP keeps running, which is your way back. If the nginx test fails, nginx will not reload or the site stops answering, the old file is put back. Versions come from third-party repositories (Sury on Debian, the Ondrej PPA on Ubuntu, Remi on Rocky and AlmaLinux), and the step says so before it adds one. Removing the old version is refused while any nginx or Apache file still uses it.

What it can't do. php.ini and pool settings are not copied to the new version, so check them. Packages from those repositories are not covered by automatic updates by default.

Domain and DNS check (Web tab)

What it does. Checks whether a domain points at this server and whether DNS is healthy enough for an HTTPS certificate. It asks this server's own resolver and the public resolvers 1.1.1.1 and 8.8.8.8, compares the records with the server's addresses, checks CAA records, and shows MX and SPF for information. It ends with a verdict.

You choose. Domain, Also check www and Install the DNS tools (dig).

Safety. It only reads. The one change is installing the DNS tools, and only if you switch it on.

What it can't do. Behind a CDN (Cloudflare, Fastly, CloudFront and others) it says it can't compare. It can't tell you the domain is yours: you need a real domain with its DNS record set at your registrar.

Update containers (Docker tab)

What it does. Shows which running containers have a newer image, without pulling, and updates the Compose services you choose.

You choose. Only update containers I name, Containers to update and Keep the old image for rollback.

Safety. Containers of a Compose project are updated with their own Compose files, so ports, volumes and settings stay as written. Nothing is stopped before the new image has been pulled. The old image is tagged first, and when an updated container does not start, is unhealthy or keeps restarting, the app puts the old image back without downloading anything. Databases on a floating tag are left out unless you name them. Back up a database first.

What it can't do. A container started with plain docker run is never recreated; it is skipped with a note. When it can't tell without pulling (a private registry, an image built here), it says so. Updated containers restart, so each is unavailable for a moment.

fail2ban jails for Docker apps (Security tab)

What it does. Install fail2ban and Manage fail2ban now group jails: Basics, Mail, Websites, Databases and admin tools, Self-hosted apps, and FTP and remote desktop. A group switch turns on all its jails, and Choose single jails shows one switch per jail. Self-hosted apps include Vaultwarden, Gitea and Forgejo, Nextcloud, Jellyfin, Grafana, Traefik, Authelia, Proxmox, OpenVPN and WordPress, also when they run in Docker.

You choose. The groups and jails, Never ban these addresses and Never ban the address I am connected from. Manage fail2ban also changes ban time, find time and tries.

Safety. A jail is only written when its service is installed (on the server or in Docker) and its log can be read; the others are listed with the reason. The result is checked with fail2ban-client -t, a jail that fails is left out and named, and the old files are put back if fail2ban then can't start. For an app in Docker the bans go in Docker's DOCKER-USER chain, and Docker's own networks are never banned, so a proxy container is not locked out. Your own settings are kept.

What it can't do. If you create a Docker container again, run the workflow again, because its log file name changes. A ban time of -1 bans for good.

Offsite backups (Data tab)

What it does. Sends the backups kept on the server in /var/backups/vpspilot to S3-compatible storage (AWS S3, Backblaze B2, Wasabi, MinIO) or to an SFTP server (a Hetzner Storage Box or any SSH host), encrypted, with restic.

You choose. Send to an SFTP server instead of S3 storage, then the S3 server address, bucket, folder, region, access key ID and secret key, or the SFTP server, port, user and folder. Then Repository password, Keep daily copies for (7), Keep weekly copies for (4), Keep monthly copies for (6), Send the backups now, Send them automatically every day with At what hour (server time), and Test a restore afterwards.

Safety. restic is downloaded from its official release and checked against a checksum built into the workflow. Credentials are kept in root-only files on the server and never appear in a command line. For SFTP the server's host key is pinned, and you compare its fingerprint before adding the key. Older copies beyond your keep settings are deleted from the storage. The optional restore test restores the newest copy into a temporary folder and compares it.

What it can't do. Without the repository password the offsite backups can never be read again, and nobody can recover it. Keep it in a saved secret or a password manager. The bucket must already exist. The archives of removed users are not sent. If no backups have been sent yet, the workflow says No backups to send yet, and the restore test stops clearly when nothing was sent. Whoever has the S3 key can also delete copies, so turn on object lock or versioning at your provider if it offers it.

Restore one folder or database (Data tab)

What it does. Puts back just one folder or one database from a VpsPilot backup (a full, files or databases backup).

You choose. The backup file is on this phone (or on the server), Backup passphrase, Restore one database (off: one folder) and then the Folder to restore or the Database name and Database server.

Safety. The checksum and passphrase are checked first. You confirm what will be replaced. Before anything is replaced, the current folder or database is saved in /var/backups/vpspilot/before-restore-<time>. After the restore it checks the data and asks Keep the restored data? Continue keeps it; Stop workflow puts the old version back. System folders (/, /etc, /usr, /var and so on) and SSH or firewall settings are refused; use Restore a backup for those.

What it can't do. A folder restore writes the backup's files over the folder; files that exist now and are not in the backup stay (an undo removes only the ones the restore added). A database is dropped and created again from the backup. The server needs GnuPG and zstd to read the backup and asks before installing them.

Undo a restore (Data tab)

What it does. Puts back what Restore one folder or database replaced, from its safety copy. Use it when you kept a restore and changed your mind, or when a restore failed half-way.

You choose. Safety copy folder. The first step lists the safety copies on the server.

Safety. It asks before it replaces anything, and the safety copy itself stays.

What it can't do. Anything changed in that folder or database after the restore is lost.

Changes to existing workflows

Change the SSH port adds the new port next to the old one as before. Now it asks you to tap Test port, which logs in from the phone on the new port with the saved login and checks the host key. Continue stays locked until the test passed. Then you can choose Update to <port> or Keep the old saved port. Stopping the run puts the saved port back. Servers that are linked to this one keep the old port in their link until you run Link servers again from them.

Restart the server waits for the server to come back (the run reconnects by itself) and then shows the state of the system and lists the failed services. Swap space can Change the size of the existing swap file or Remove the swap file instead. Both are refused when the memory in use would not fit without swap, and a failed resize puts the old file back. Time zone and host name checks that time sync is really on after you turn it on, and says so if it is not.

Get code from Git and Build and run from a folder are presets of Deploy from Git: turn Get the newest code first and Build afterwards on or off. Swarm status is the Only look at the swarm (change nothing) switch of Manage a swarm node. They are no longer separate rows, and schedules and history that used the old names keep working.