mirror of
https://codeberg.org/icewind/prometheus-mdns-rs.git
synced 2026-06-03 09:54:21 +02:00
tweak serviceConfig
This commit is contained in:
parent
898871b258
commit
90314cc5eb
1 changed files with 2 additions and 2 deletions
|
|
@ -54,9 +54,9 @@
|
|||
pkg = self.defaultPackage.${pkgs.system};
|
||||
in {
|
||||
wantedBy = ["multi-user.target"];
|
||||
script = "${pkg}/bin/prometheus-mdns-sd-rs ${cfg.target}";
|
||||
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkg}/bin/prometheus-mdns-sd-rs ${cfg.target}";
|
||||
Restart = "on-failure";
|
||||
DynamicUser = true;
|
||||
PrivateTmp = true;
|
||||
|
|
@ -77,7 +77,7 @@
|
|||
ProtectKernelTunables = true;
|
||||
RestrictAddressFamilies = "AF_INET";
|
||||
RestrictRealtime = true;
|
||||
ProtectProc = "noaccess";
|
||||
ProtectProc = "invisible";
|
||||
SystemCallFilter = ["@system-service" "~@resources" "~@privileged"];
|
||||
IPAddressDeny = "any";
|
||||
IPAddressAllow = ["multicast" "192.168.0.0/16"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue