demo / network-computer
Public
Copy of github.com/askrobots/network-computer (MIT): a desk you reach from anything. The original lives on GitHub.
GitStable demo
README: say this is a copy and where the original is
cde82c2
14 hours, 3 minutes ago
History
nc-streams.service · 704 bytes · 22 lines
| 1 | [Unit] |
| 2 | Description=Network Computer live streams (MediaMTX: SRT in, watch and record on the desk) |
| 3 | After=network-online.target |
| 4 | Wants=network-online.target |
| 5 | |
| 6 | [Service] |
| 7 | User=nc-streams |
| 8 | Group=nc-streams |
| 9 | EnvironmentFile=/etc/nc/streams.env |
| 10 | # no passphrase, no service: SRT would otherwise accept any publisher |
| 11 | ExecStartPre=/bin/sh -c 'test $${#MTX_PATHDEFAULTS_SRTPUBLISHPASSPHRASE} -ge 10 || { echo "no passphrase in /etc/nc/streams.env: nc-stream on makes one" >&2; exit 1; }' |
| 12 | ExecStart=/usr/local/bin/mediamtx /etc/nc/mediamtx.yml |
| 13 | Restart=always |
| 14 | RestartSec=3 |
| 15 | NoNewPrivileges=true |
| 16 | ProtectSystem=strict |
| 17 | ProtectHome=true |
| 18 | ReadWritePaths=/var/lib/nc-streams |
| 19 | PrivateTmp=true |
| 20 | |
| 21 | [Install] |
| 22 | WantedBy=multi-user.target |