From 8189be6cc3e50b625ee489ecb9bcf55a2d028591 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Sat, 24 Aug 2024 19:26:50 +0300 Subject: [PATCH] Git : Use git user. --- container/Git.nix | 14 ++++++++------ home/program/bash/module/Git.nix | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/container/Git.nix b/container/Git.nix index 3628c7b..eb1ff8c 100644 --- a/container/Git.nix +++ b/container/Git.nix @@ -65,12 +65,14 @@ in { "service".DISABLE_REGISTRATION = true; "log".LEVEL = "Error"; "server" = { - DISABLE_SSH = false; - SSH_PORT = cfg.portSsh; - START_SSH_SERVER = true; - DOMAIN = cfg.domain; - HTTP_ADDR = cfg.address; - ROOT_URL = "https://${cfg.domain}"; + DOMAIN = cfg.domain; + HTTP_ADDR = cfg.address; + ROOT_URL = "https://${cfg.domain}"; + + BUILTIN_SSH_SERVER_USER = "git"; + DISABLE_SSH = false; + SSH_PORT = cfg.portSsh; + START_SSH_SERVER = true; }; "ui" = { AMBIGUOUS_UNICODE_DETECTION = false; diff --git a/home/program/bash/module/Git.nix b/home/program/bash/module/Git.nix index 4368aea..da13416 100644 --- a/home/program/bash/module/Git.nix +++ b/home/program/bash/module/Git.nix @@ -179,7 +179,7 @@ return 2 fi - git clone https://git.voronind.com/voronind/"''${repo}" + git clone ssh://git@git.voronind.com:22144/voronind/"''${repo}" } # See diff for a specific commit. Last commit by default.