Back to Crucible
Crucible · Self-hosting guide

Install & update Crucible.

Crucible is two pieces: a relay server you run on a Linux box, and a plugin inside OBS Studio that configures it. The server installs with one command and upgrades the same way. Here is what the installer does, where everything lives, and how to put the dock in OBS.

Part 1

Install the server

You need Linux with systemd on x86_64 or aarch64, the usual curl, tar, sha256sum and install, and root or sudo. The script fetches the latest release from GitHub, checks it against the published SHA256SUMS, and sets up a dedicated crucible user, a hardened service and the directories below. Read it first if you like: it is short, and the Verify tab shows how to check it before running it.

# as a user with sudo, or as root
curl -fsSL https://devforge.io/crucible/install.sh | sh
 
# the same script is attached to every release
curl -fsSL https://github.com/devforge-io/crucible/releases/latest/download/install.sh | sh
# pin a release instead of the latest
curl -fsSL https://devforge.io/crucible/install.sh | CRUCIBLE_VERSION=v0.1.0 sh
 
# binary and unit only: do not enable or start the service (no systemd needed)
curl -fsSL https://devforge.io/crucible/install.sh | CRUCIBLE_NO_START=1 sh
# checks for curl, tar, sha256sum and install, then:
#   downloads crucible-<tag>-<arch>-unknown-linux-musl.tar.gz from GitHub
#   verifies it against the release's SHA256SUMS
#   creates the system user "crucible" (no login shell, no home)
#   installs the binary, the settings file and the data directory
#   writes the systemd unit, enables it, starts it
#   waits for http://127.0.0.1:8740/health/live to answer
Crucible v0.1.0 installed.
 
  Binary:    /usr/local/bin/crucible
  Settings:  /etc/crucible/crucible.env
  Data:      /var/lib/crucible/
  Service:   systemctl status crucible   (logs: journalctl -u crucible)
# /etc/crucible/crucible.env holds bootstrap settings only; everything else
# is configured from the OBS plugin and kept in the server's database.
CRUCIBLE_LISTEN=127.0.0.1:8740   # control API. keep it on loopback until TLS is in front
RUST_LOG=info                    # trace, debug, info, warn, error
 
# apply a change
sudo systemctl restart crucible
sudo systemctl status crucible
sudo journalctl -u crucible -f
 
# the control API answers on the configured address
curl -fsS http://127.0.0.1:8740/health/live
curl -fsS http://127.0.0.1:8740/health/ready
curl -fsS http://127.0.0.1:8740/api/v1/server-info
curl -fsS http://127.0.0.1:8740/api/v1/status
# re-run the installer. it replaces the binary and the unit, keeps
# /etc/crucible/crucible.env and /var/lib/crucible, and restarts the service
curl -fsSL https://devforge.io/crucible/install.sh | sh
 
# roll back or hold a version
curl -fsSL https://devforge.io/crucible/install.sh | CRUCIBLE_VERSION=v0.1.0 sh
# every release ships SHA256SUMS covering the archives and install.sh
curl -fsSLO https://github.com/devforge-io/crucible/releases/latest/download/install.sh
curl -fsSLO https://github.com/devforge-io/crucible/releases/latest/download/SHA256SUMS
sha256sum -c --ignore-missing SHA256SUMS
 
# then run the script you just checked
sh ./install.sh
sudo systemctl disable --now crucible
sudo rm /etc/systemd/system/crucible.service /usr/local/bin/crucible
sudo systemctl daemon-reload
 
# only if you also want the settings, the data and the user gone
sudo rm -r /etc/crucible /var/lib/crucible
sudo userdel crucible
PathWhat it isOwner, mode
/usr/local/bin/crucibleThe server binary (static musl build), replaced on every run.root, 755
/etc/crucible/crucible.envBootstrap settings read by the service. Written once, kept on upgrade.root:crucible, 640
/var/lib/crucible/Database and state, including encrypted secrets. The only path the service can write.crucible, 700
/etc/systemd/system/crucible.serviceThe unit, owned by the installer and rewritten on every run.root, 644

The unit runs the server as crucible with NoNewPrivileges, ProtectSystem=strict, ProtectHome, private /tmp and devices, an empty capability set and write access to /var/lib/crucible only. The control API listens on loopback by default; the OBS plugin only accepts plain HTTP for loopback addresses, so put TLS (or a tunnel such as WireGuard or Tailscale) in front before you expose it. Ingest ports and TLS guidance will be added here as those parts of the server land.

Part 2

Put the dock in OBS

The plugin is built against OBS Studio 32.0.2 and adds a Crucible dock under Docks, with a Tools, Crucible settings window to follow. It is a remote control only: it never carries media and never stores platform keys, so if it is disabled or crashes, OBS keeps streaming to the relay and the relay keeps forwarding. Today the dock connects to a server and checks its identity; pairing with a one-time code from crucible pair is on the way.

# macOS (OBS Studio 32): quit OBS, copy the bundle into the plugins folder, start OBS
cp -R crucible-obs.plugin ~/Library/Application\ Support/obs-studio/plugins/
 
# Windows: a build is coming to the releases page; nothing to install yet
# in OBS: Docks, Crucible. enter your server address and check the connection
http://127.0.0.1:8740        # plain http is accepted for loopback addresses only
https://relay.example.com    # anything else needs TLS in front of the control API
# quit OBS, replace the bundle with the new one, start OBS
rm -r ~/Library/Application\ Support/obs-studio/plugins/crucible-obs.plugin
cp -R crucible-obs.plugin ~/Library/Application\ Support/obs-studio/plugins/
 
# remove it the same way: delete the bundle and start OBS

Stuck on setup?

We are happy to help you get Crucible running on your own infrastructure.