summaryrefslogtreecommitdiffstats
path: root/etc/systemd
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-10-13 18:38:58 -0700
committeryum <yum.food.vr@gmail.com>2025-10-28 17:19:35 -0700
commit8aca05a7e644f3d4aff6bcf636514882dd2ae934 (patch)
treef2b6ad908083affb13dca32f803180e60d67638f /etc/systemd
parent906f53826285a713512f199b1c99fd68bc1dbc52 (diff)
meow
Diffstat (limited to 'etc/systemd')
-rw-r--r--etc/systemd/system/obsproxy.service32
1 files changed, 32 insertions, 0 deletions
diff --git a/etc/systemd/system/obsproxy.service b/etc/systemd/system/obsproxy.service
new file mode 100644
index 0000000..f2a957b
--- /dev/null
+++ b/etc/systemd/system/obsproxy.service
@@ -0,0 +1,32 @@
+[Unit]
+Description=OBS to low-latency DASH streaming proxy
+After=network.target
+
+[Service]
+User=www-data
+Group=www-data
+WorkingDirectory=/opt/obsproxy
+ExecStart=/opt/obsproxy/venv/bin/python /opt/obsproxy/server.py
+Restart=on-failure
+RestartSec=5s
+
+# Logging
+StandardOutput=journal
+StandardError=journal
+SyslogIdentifier=obsproxy
+
+# Environment variables
+Environment=PYTHONUNBUFFERED=1
+Environment=STREAM_DIR=/var/www/streams
+Environment=PORT=5000
+Environment=STREAM_PSK=your_pre_shared_key
+Environment=LOG_LEVEL=INFO
+
+# Security settings
+NoNewPrivileges=true
+PrivateTmp=true
+ProtectSystem=full
+ProtectHome=true
+
+[Install]
+WantedBy=multi-user.target