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 ];
|
||||
programs.ssh.matchBlocks = {
|
||||
"legion" = { port = 30; };
|
||||
"vanguard" = { hostname = "192.168.1.166"; port = 2222; };
|
||||
"legion vanguard" = lib.hm.dag.entryAfter [ "legion" "vanguard" ] {
|
||||
user = "root";
|
||||
forwardAgent = true;
|
||||
"vanguard" = { user = "xenia"; };
|
||||
"git.xenia.me.uk" = { user = "git"; };
|
||||
"vanguard *xenia.me.uk" = lib.hm.dag.entryAfter [ "vanguard" ] {
|
||||
hostname = "192.168.1.166"; port = 2222;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
imports = [ ./traefik.nix ./fail2ban.nix ];
|
||||
services.gitea = {
|
||||
enable = true;
|
||||
settings.server = { DOMAIN = "git.xenia.me.uk"; }; # SSH_PORT = 2222; };
|
||||
settings.server = { DOMAIN = "git.xenia.me.uk"; SSH_PORT = 2222; };
|
||||
appName = "Gitea";
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 2222 ];
|
||||
|
|
Loading…
Reference in a new issue