This commit is contained in:
XenGi 2026-08-13 16:56:22 +02:00
commit e1cf857065
Signed by: xengi
SSH key fingerprint: SHA256:jxWM2RTHvxxcncXycwwWkP7HCWb4VREN05UGJTbIPZg
3 changed files with 15 additions and 7 deletions

View file

@ -3,7 +3,7 @@
{
imports = [
../common.nix
../../services/openssh.nix
./openssh.nix
../../services/prometheus-node.nix
./forgejo.nix
#./forgejo-runner.nix

View file

@ -78,12 +78,6 @@ in
};
};
openssh.extraConfig = ''
Match User forgejo
AcceptEnv GIT_PROTOCOL
PerSourcePenalties no
'';
nginx.virtualHosts."${fqdn}" = {
quic = true;
kTLS = true;

14
hosts/git/openssh.nix Normal file
View file

@ -0,0 +1,14 @@
{ ... }:
{
imports = [ ../../services/openssh.nix ];
services.openssh = {
settings.PerSourcePenalties = false;
extraConfig = ''
Match User forgejo
AcceptEnv GIT_PROTOCOL
'';
};
}