change ssh port to allow git+ssh for gitlab
This commit is contained in:
@@ -18,12 +18,29 @@
|
|||||||
"gitlab/oidc/secret" = {};
|
"gitlab/oidc/secret" = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.openssh.ports = [
|
||||||
|
2222
|
||||||
|
];
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
22
|
||||||
|
2222
|
||||||
|
];
|
||||||
|
|
||||||
containers.gitlab = {
|
containers.gitlab = {
|
||||||
|
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
privateNetwork = true;
|
privateNetwork = true;
|
||||||
hostAddress = "192.168.100.10";
|
hostAddress = "192.168.100.10";
|
||||||
localAddress = "192.168.100.16";
|
localAddress = "192.168.100.16";
|
||||||
|
|
||||||
|
forwardPorts = [
|
||||||
|
{
|
||||||
|
containerPort = 22;
|
||||||
|
hostPort = 22;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
bindMounts = {
|
bindMounts = {
|
||||||
"/etc/gitlab/data" = {
|
"/etc/gitlab/data" = {
|
||||||
hostPath = "/ssd1/Gitlab/data";
|
hostPath = "/ssd1/Gitlab/data";
|
||||||
|
|||||||
Reference in New Issue
Block a user