fix sshd
This commit is contained in:
parent
92d7055072
commit
e1cf857065
3 changed files with 15 additions and 7 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../common.nix
|
../common.nix
|
||||||
../../services/openssh.nix
|
./openssh.nix
|
||||||
../../services/prometheus-node.nix
|
../../services/prometheus-node.nix
|
||||||
./forgejo.nix
|
./forgejo.nix
|
||||||
#./forgejo-runner.nix
|
#./forgejo-runner.nix
|
||||||
|
|
|
||||||
|
|
@ -78,12 +78,6 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
openssh.extraConfig = ''
|
|
||||||
Match User forgejo
|
|
||||||
AcceptEnv GIT_PROTOCOL
|
|
||||||
PerSourcePenalties no
|
|
||||||
'';
|
|
||||||
|
|
||||||
nginx.virtualHosts."${fqdn}" = {
|
nginx.virtualHosts."${fqdn}" = {
|
||||||
quic = true;
|
quic = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
|
|
|
||||||
14
hosts/git/openssh.nix
Normal file
14
hosts/git/openssh.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [ ../../services/openssh.nix ];
|
||||||
|
|
||||||
|
services.openssh = {
|
||||||
|
settings.PerSourcePenalties = false;
|
||||||
|
extraConfig = ''
|
||||||
|
Match User forgejo
|
||||||
|
AcceptEnv GIT_PROTOCOL
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Reference in a new issue