forked from hacc/haccfiles
git ssh: switch to gitea (instead of gitlab)
This commit is contained in:
parent
83cda0f44a
commit
9bf75b9c3d
2 changed files with 18 additions and 5 deletions
|
@ -104,6 +104,14 @@
|
||||||
startAt = "*-*-* 23:45:00";
|
startAt = "*-*-* 23:45:00";
|
||||||
location = "/persist/backups/postgres";
|
location = "/persist/backups/postgres";
|
||||||
};
|
};
|
||||||
|
services.openssh = {
|
||||||
|
enable = true;
|
||||||
|
passwordAuthentication = false;
|
||||||
|
listenAddresses = [ {
|
||||||
|
addr = "192.168.100.10";
|
||||||
|
port = 22;
|
||||||
|
} ];
|
||||||
|
};
|
||||||
})).config.system.build.toplevel;
|
})).config.system.build.toplevel;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -114,4 +122,9 @@
|
||||||
proxyPass = "http://${config.containers.gitea.localAddress}:3000";
|
proxyPass = "http://${config.containers.gitea.localAddress}:3000";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
hexchen.nftables.nat.forwardPorts = [{
|
||||||
|
ports = [ 22 ];
|
||||||
|
destination = "${config.containers.gitea.localAddress}:22";
|
||||||
|
proto = "tcp";
|
||||||
|
}];
|
||||||
}
|
}
|
||||||
|
|
|
@ -133,11 +133,11 @@
|
||||||
})).config.system.build.toplevel;
|
})).config.system.build.toplevel;
|
||||||
};
|
};
|
||||||
|
|
||||||
hexchen.nftables.nat.forwardPorts = [{
|
# hexchen.nftables.nat.forwardPorts = [{
|
||||||
ports = [ 22 ];
|
# ports = [ 22 ];
|
||||||
destination = "${config.containers.gitlab.localAddress}:22";
|
# destination = "${config.containers.gitlab.localAddress}:22";
|
||||||
proto = "tcp";
|
# proto = "tcp";
|
||||||
}];
|
# }];
|
||||||
|
|
||||||
services.nginx.virtualHosts."gitlab.infra4future.de" = {
|
services.nginx.virtualHosts."gitlab.infra4future.de" = {
|
||||||
locations."/".proxyPass = "http://${config.containers.gitlab.localAddress}:80";
|
locations."/".proxyPass = "http://${config.containers.gitlab.localAddress}:80";
|
||||||
|
|
Loading…
Reference in a new issue