gitea ssh listen with sshd, lfs enabled

This commit is contained in:
Giulio De Pasquale 2021-12-08 16:47:11 +01:00
parent 05a4fa074b
commit 394b5e5070

View File

@ -5,9 +5,8 @@ with import ./network.nix; {
domain = "git.giugl.io"; domain = "git.giugl.io";
appName = "Gitea"; appName = "Gitea";
rootUrl = "https://git.giugl.io"; rootUrl = "https://git.giugl.io";
ssh.clonePort = 10022; ssh.clonePort = 22;
log.level = "Info"; settings.server.LFS_START_SERVER = true;
settings.server.START_SSH_SERVER = true;
}; };
services.nginx.virtualHosts.${gitdomain} = { services.nginx.virtualHosts.${gitdomain} = {
@ -16,12 +15,12 @@ with import ./network.nix; {
locations."/" = { locations."/" = {
proxyPass = "http://localhost:3000"; proxyPass = "http://localhost:3000";
extraConfig = '' extraConfig = ''
allow 127.0.0.1; allow 127.0.0.1;
allow 10.0.0.0/24; allow 10.0.0.0/24;
allow 10.3.0.0/24; allow 10.3.0.0/24;
allow 10.4.0.0/24; allow 10.4.0.0/24;
deny all; deny all;
''; '';
}; };
}; };
@ -29,4 +28,5 @@ with import ./network.nix; {
${architect-lan} ${gitdomain} ${architect-lan} ${gitdomain}
${architect-wg} ${gitdomain} ${architect-wg} ${gitdomain}
''; '';
} }