fix: allow forgejo to bind to tcp port 22
This commit is contained in:
parent
7e464a5f26
commit
149a431301
1 changed files with 6 additions and 0 deletions
|
@ -74,6 +74,12 @@ in
|
||||||
vmOverCommit = true;
|
vmOverCommit = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.forgejo.serviceConfig = {
|
||||||
|
AmbientCapabilities = lib.mkForce "CAP_NET_BIND_SERVICE";
|
||||||
|
CapabilityBoundingSet = lib.mkForce "CAP_NET_BIND_SERVICE";
|
||||||
|
PrivateUsers = lib.mkForce false;
|
||||||
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."git.${config.networking.domain}" = {
|
services.nginx.virtualHosts."git.${config.networking.domain}" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue