mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-01-05 01:27:40 +01:00
Add optional hardening to systemd service (#259)
This commit is contained in:
parent
f2ab65aab7
commit
bdc32cee90
@ -13,6 +13,15 @@ WantedBy=multi-user.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
NonBlocking=true
|
NonBlocking=true
|
||||||
|
ProtectHome=true
|
||||||
|
|
||||||
# Change this
|
# Change this
|
||||||
ExecStart=/opt/dnscrypt-proxy/dnscrypt-proxy
|
ExecStart=/opt/dnscrypt-proxy/dnscrypt-proxy
|
||||||
|
|
||||||
|
# Run dnscrypt-proxy as unprivileged user with
|
||||||
|
# temporary assigned UID/GID. See man:systemd.exec
|
||||||
|
# for more info. Requires systemd 232+.
|
||||||
|
#DynamicUser=yes
|
||||||
|
#CacheDirectory=dnscrypt-proxy
|
||||||
|
#LogsDirectory=dnscrypt-proxy
|
||||||
|
#RuntimeDirectory=dnscrypt-proxy
|
||||||
|
Loading…
Reference in New Issue
Block a user