can't bind on port 22 fix
This commit is contained in:
parent
fac3a1c9aa
commit
6a14266676
|
@ -79,5 +79,10 @@ in {
|
||||||
journalmatch = _SYSTEMD_UNIT=forgejo.service
|
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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue