Update service to be far more secure. (#2352)
This commit is contained in:
parent
ec42aedb73
commit
9b7e5d5189
@ -3,11 +3,17 @@ Description=Owncast Service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=[path_to_owncast_root_directory]
|
||||
ExecStart=[path_to_owncast_executable]
|
||||
Restart=on-failure
|
||||
WorkingDirectory=[path to owncast directory]
|
||||
ReadWritePaths=[path to owncast directory]
|
||||
ExecStart=[path to owncast directory]/owncast
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
User=[user to run owncast as]
|
||||
Group=[group to run owncast as]
|
||||
NoNewPrivileges=true
|
||||
SecureBits=noroot
|
||||
ProtectSystem=strict
|
||||
ProtectHome=read-only
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user