can't bind on port 22 fix

This commit is contained in:
Sakooooo 2025-01-01 14:50:47 +04:00
parent fac3a1c9aa
commit 6a14266676
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -79,5 +79,10 @@ in {
journalmatch = _SYSTEMD_UNIT=forgejo.service
'';
};
systemd.services.forgejo.serviceConfig = {
AmbientCapabilities = lib.mkForce [ "CAP_NET_BIND_SERVICE" ];
CapabilityBoundingSet = lib.mkForce [ "CAP_NET_BIND_SERVICE" ];
PrivateUsers = lib.mkForce false;
};
};
}