summaryrefslogtreecommitdiffstats
path: root/etc/systemd/system/obsproxy.service
blob: f2a957b9dfb80513265770e8f5fb440de6e76b69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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