hosts/plover: update Bind systemd service config

This commit is contained in:
Gabriel Arazas 2023-10-14 14:05:14 +08:00
parent 680ec43428
commit 1775a0febc
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -209,6 +209,11 @@ in
(certCredentialPath "fullchain.pem")
];
LogFilterPatterns = [
# systemd-resolved doesn't have DNS cookie support, it seems.
"~missing expected cookie from 127.0.0.53#53"
];
# Lock and protect various system components.
LockPersonality = true;
PrivateTmp = true;
@ -251,10 +256,7 @@ in
# syslog for this even if the application can so no syslog capability.
# Additionally, we're using omitting the program's ability to chroot and
# chown since the user and the directories are already configured.
CapabilityBoundingSet = [
"CAP_NET_BIND_SERVICE"
"CAP_NET_RAW"
];
CapabilityBoundingSet = [ "CAP_NET_BIND_SERVICE" ];
AmbientCapabilities = [ "CAP_NET_BIND_SERVICE" ];
# Restrict what address families can it access.
@ -278,7 +280,6 @@ in
ports = [
53 # DNS
853 # DNS-over-TLS/DNS-over-QUIC
dnsOverHTTPSPort
];
in
{