http3-ytproxy/http3-ytproxy@.service

39 lines
825 B
SYSTEMD
Raw Normal View History

2023-11-07 11:05:53 -03:00
[Unit]
Description=Http3 YTProxy for Invidious
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
2023-11-07 12:18:56 -03:00
User=http
Group=http
2023-11-07 11:05:53 -03:00
Environment="DISABLE_WEBP=1"
WorkingDirectory=/opt/http3-ytproxy
2023-11-07 12:18:20 -03:00
ExecStart=/opt/http3-ytproxy/http3-ytproxy -s http-proxy-%i.sock
2023-11-07 11:05:53 -03:00
Restart=on-failure
2023-11-07 12:18:20 -03:00
RestartSec=2s
2023-11-07 11:05:53 -03:00
2023-11-07 12:18:56 -03:00
ReadWritePaths=/opt/http3-ytproxy/socket
2023-11-07 11:05:53 -03:00
NoNewPrivileges=yes
MemoryDenyWriteExecute=true
PrivateDevices=yes
PrivateTmp=yes
ProtectHome=yes
ProtectSystem=strict
ProtectControlGroups=true
RestrictSUIDSGID=true
RestrictRealtime=true
LockPersonality=true
ProtectKernelLogs=true
ProtectKernelTunables=true
ProtectHostname=true
ProtectKernelModules=true
PrivateUsers=true
ProtectClock=true
SystemCallArchitectures=native
SystemCallErrorNumber=EPERM
SystemCallFilter=@system-service
[Install]
WantedBy=multi-user.target