mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-22 15:49:29 +08:00
Disable PrivateDevices in systemd as it doesn't work for some devices (#1990)
This commit is contained in:
parent
e20779e405
commit
fd3fafa50c
4
dist/init/linux-systemd/caddy.service
vendored
4
dist/init/linux-systemd/caddy.service
vendored
|
@ -30,8 +30,8 @@ LimitNPROC=512
|
|||
|
||||
; Use private /tmp and /var/tmp, which are discarded after caddy stops.
|
||||
PrivateTmp=true
|
||||
; Use a minimal /dev
|
||||
PrivateDevices=true
|
||||
; Use a minimal /dev (May bring additional security if switched to 'true', but it may not work on Raspberry Pi's or other devices, so it has been disabled in this dist.)
|
||||
PrivateDevices=false
|
||||
; Hide /home, /root, and /run/user. Nobody will steal your SSH-keys.
|
||||
ProtectHome=true
|
||||
; Make /usr, /boot, /etc and possibly some more folders read-only.
|
||||
|
|
Loading…
Reference in New Issue
Block a user