Servers
Enroll Tako network servers, select deployment targets, and maintain the service.
A server is a Linux host running tako-server. Native networks enroll servers and devices with their own keys, resolve trusted membership, and manage apps over pinned HTTPS. Start there for the create, server-add, and environment-selection workflow.
Server Setup
Install the server on a Linux host with glibc and systemd, using x86_64 or ARM64. Alpine/musl and OpenRC hosts are not supported.
For a stopped bootstrap installation, run the installer, then complete enrollment from your workstation:
curl -fsSL https://tako.sh/install-server.sh | sudo env TAKO_RESTART_SERVICE=0 sh
Custom public ports:
curl -fsSL https://tako.sh/install-server.sh | sudo env TAKO_RESTART_SERVICE=0 sh -s -- --http-port 8080 --https-port 8443
The installer creates the tako service user, the shared tako-app group, /opt/tako, /var/run/tako, service files, maintenance helpers, restricted sudoers policy, public HTTP/HTTPS listeners, local metrics, libvips runtime support, and native WireGuard networking and signed, pinned HTTPS management.
On Linux, each app/environment runs as a separate Unix identity. Apps can write their own release files and data, including dependencies, while the service protects the release manifest and control directories. The internal socket checks the connecting Unix identity against the requested app. Image decoding runs under a separate unprivileged account with bounded resources.
Production isolation requires cgroup v2 with CPU, memory, and process controllers. Each app is limited to 2 GiB of memory, two CPUs, and 512 processes. Missing identity provisioning or resource enforcement stops app startup. The installer restarts an existing service so children launched under an older policy are replaced. If you use TAKO_RESTART_SERVICE=0 when upgrading, restart the service before relying on the updated isolation policy.
Add A Server
tako network create production
tako network server add ubuntu@203.0.113.10 --network production --name edge
tako network status production --json
Replace the example IP with your server’s reachable address. Bootstrap installs the native network components over administrator SSH, generates server keys on the host, enrolls its membership, and starts the service. Without an explicit SSH user, Tako uses root. With no host in an interactive terminal, Tako prompts for admin@host.
--network selects a shared network name or stable ID. If omitted, Tako uses the project’s production network (including a file selected with --config) or the only configured network. An explicit --network takes precedence. Create or import a network first; multiple networks require an explicit selection. --ssh-key selects the bootstrap key. The bootstrap SSH host and the key’s absolute path are saved locally for subsequent reload, upgrade, and uninstall commands on this workstation. These SSH settings are scoped to the server and local network identity and are not exported with network membership. Use --port for a custom SSH port and --http-port / --https-port for public listeners (defaults 80 / 443). --wireguard-endpoint overrides the advertised IP and UDP port (default: the host’s IP on UDP 51820); it does not change the saved SSH host.
Allow the configured HTTPS port for management and the WireGuard UDP endpoint for private traffic. Deployments use signed pinned HTTPS without requiring a workstation WireGuard interface. See Native networks for enrollment, permissions, routing, and connectivity limits.
Choose the VPN provider
Tako manages its own WireGuard network. Provider selection and Tailscale/NetBird integrations have been removed. The --vpn, --no-test, --install, and server --description flags are no longer available.
To replace an old installation, preserve its app data and keys, create a Tako network, re-enroll each server with the command above, and set [envs.<env>].network to its stable ID. File-based inventories and their old [[servers]] entries are no longer read. To preserve placement in each project, set the environment’s servers list to the corresponding enrolled server names. Older native identities also need fresh enrollment; see Native networks for the version-2 identity boundary.
Install directly on the server
For an image build or a stopped bootstrap installation:
curl -fsSL https://tako.sh/install-server.sh | sudo env TAKO_RESTART_SERVICE=0 sh
The installer defaults to native networking. Service startup requires applied native network state; finish enrollment from the administrator’s workstation. TAKO_MANAGEMENT_HOST may select only an address assigned by that state. Saved external-provider settings are rejected during standalone upgrades; administrator re-enrollment explicitly selects native networking.
Recover a lost administrator
Use the provider’s web console or administrator SSH to run sudo tako-server admin invite on an active server. Join from the replacement machine with tako network join. This creates an independent administrator so revoking the lost client does not also revoke its replacement. The server’s state, keys, and network agent must still be available. See Recover administrator access for the full handoff and limits.
Server Maintenance
tako network server reload production/edge
tako network server reload production/edge --force
tako network server upgrade production/edge
tako network server upgrade production/edge --force
tako network server uninstall production/edge --yes
Use the exact selector shown by tako network server list --json. It normally has the form network-name/server-name. If enrolled networks share a name, it becomes network-name/NETWORK_ID/server-name. Duplicate server names within a network also append /SERVER_DEVICE_ID. Ambiguous short names are rejected. App placement in [envs.<env>].servers uses enrolled server names or device IDs within that environment’s network; do not put maintenance selectors there.
reload is zero-downtime by default. Its --force flag performs a restart. upgrade installs a candidate tako-server binary, enters upgrade mode, and checks its protocol against the CLI and every active release before reloading. It checks again after readiness, then restarts the running network agent and optional running standby on the installed binary before leaving upgrade mode. An intentionally stopped standby stays stopped. Rollback also refreshes these companion processes. A mismatch fails before reload; any failure after reload begins restores and restarts the previous binary before upgrade mode ends. upgrade --force attempts a protocol mismatch but keeps readiness and rollback enabled. uninstall first publishes a revocation of the server’s network membership and delegated approvals, then removes the remote service and data over the existing SSH session. If revocation cannot be confirmed, uninstall fails and leaves the remote files intact. Offline peers enforce the revocation when they reconnect. If remote cleanup fails after revocation, uninstall reports the remaining SSH cleanup instead of success.
network server remove <selector> revokes the server’s network membership and delegated approvals after confirmation. Enforcement on offline peers remains pending until they reconnect. It does not uninstall the service or delete app data.
Maintenance runs through restricted, root-owned helpers. Upgrades accept only official releases: the CLI verifies the signed release manifest, and the host verifies the archive against that manifest before installation. Install custom builds as administrator; network server upgrade rejects TAKO_DOWNLOAD_BASE_URL overrides.
Map an app to servers
Copy the stable ID from tako network list --json:
[envs.production]
route = "app.example.com"
network = "0123456789abcdef0123456789abcdef"
Use the actual network ID. Trusted members supply deployment targets. See Deployment, and configure shared primitive state before deploying to multiple servers.
Verify access
tako network server list --json
tako status --json
Check the selected host, network membership, and management reachability before deploying. After a service upgrade, inspect status and request an existing app route. See Troubleshooting for repair paths.