Set gitea SSH port correctly, setup ssh config definition for SSH
This commit is contained in:
parent
e0035cef4d
commit
fbc8315be8
|
@ -2,11 +2,10 @@
|
||||||
{
|
{
|
||||||
imports = [ ./common.nix ];
|
imports = [ ./common.nix ];
|
||||||
programs.ssh.matchBlocks = {
|
programs.ssh.matchBlocks = {
|
||||||
"legion" = { port = 30; };
|
"vanguard" = { user = "xenia"; };
|
||||||
"vanguard" = { hostname = "192.168.1.166"; port = 2222; };
|
"git.xenia.me.uk" = { user = "git"; };
|
||||||
"legion vanguard" = lib.hm.dag.entryAfter [ "legion" "vanguard" ] {
|
"vanguard *xenia.me.uk" = lib.hm.dag.entryAfter [ "vanguard" ] {
|
||||||
user = "root";
|
hostname = "192.168.1.166"; port = 2222;
|
||||||
forwardAgent = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
imports = [ ./traefik.nix ./fail2ban.nix ];
|
imports = [ ./traefik.nix ./fail2ban.nix ];
|
||||||
services.gitea = {
|
services.gitea = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.server = { DOMAIN = "git.xenia.me.uk"; }; # SSH_PORT = 2222; };
|
settings.server = { DOMAIN = "git.xenia.me.uk"; SSH_PORT = 2222; };
|
||||||
appName = "Gitea";
|
appName = "Gitea";
|
||||||
};
|
};
|
||||||
networking.firewall.allowedTCPPorts = [ 80 443 2222 ];
|
networking.firewall.allowedTCPPorts = [ 80 443 2222 ];
|
||||||
|
|
Loading…
Reference in a new issue