# Dedicated watch-together server (no display needed). # Install: unpack the release tarball to /opt/watch-together (the unit only # uses the watch-together-server binary in it), copy this file to # /etc/systemd/system/, then `systemctl enable --now watch-together`. # Flags: --port (default 8080), --secret (empty = open # server, anyone who can reach the port can join), --name, --media , # --advertise-host , --no-yt-dlp, --yt-dlp-dir , --config # . See README. The server's yt-dlp (for web page links it # fetches) is downloaded into the state directory below. # Prefer --config with a root-only file over --secret here: unit files and # process lists are readable by other users. [Unit] Description=watch-together dedicated server After=network-online.target Wants=network-online.target [Service] ExecStart=/opt/watch-together/watch-together-server --port 8080 --secret change-me Restart=on-failure DynamicUser=true StateDirectory=watch-together NoNewPrivileges=true [Install] WantedBy=multi-user.target