This service runs tailscale serve to serve a web endpoint via Tailscale.
[Unit]
Description=Serve Nextcloud backend through Tailscale
After=network.target
[Service]
Type=oneshot
ExecStart=/usr/bin/tailscale serve --bg http://127.0.0.1:11000
[Install]
WantedBy=multi-user.target
# Reload systemd config
sudo systemctl daemon-reload
# Enable service at boot
sudo systemctl enable tailscale-web.service
# Start service now
sudo systemctl start tailscale-web.service
# Check status
sudo systemctl status tailscale-web.service
This page is just a static explanation of the service syntax.