fix ssh, back to built in
This commit is contained in:
@@ -62,8 +62,16 @@ in
|
||||
createHome = true;
|
||||
group = service;
|
||||
extraGroups = [];
|
||||
#openssh.authorizedKeys.keyFiles = [
|
||||
# "${cfg.data_dir}/.ssh/authorized_keys"
|
||||
#];
|
||||
};
|
||||
|
||||
services.openssh.extraConfig = ''
|
||||
Match User gitea
|
||||
AuthorizedKeysFile /var/lib/gitea/.ssh/authorized_keys
|
||||
'';
|
||||
|
||||
# declare the gitea service
|
||||
services.gitea = {
|
||||
enable = true;
|
||||
@@ -82,10 +90,13 @@ in
|
||||
ALLOW_LOCALNETWORKS = true;
|
||||
ALLOWED_DOMAINS = "10.10.0.10";
|
||||
SKIP_TLS_VERIFY = true;
|
||||
# configure for system ssh
|
||||
SSH_PORT = 22;
|
||||
START_SSH_SERVER = false;
|
||||
# configure for system ssh (trying to use the systms on nix sucks)
|
||||
SSH_PORT = cfg.ssh_port;
|
||||
START_SSH_SERVER = true;
|
||||
# SSH_PORT = 22;
|
||||
# START_SSH_SERVER = false;
|
||||
# SSH_ROOT_PATH = "${cfg.data_dir}/.ssh";
|
||||
# SSH_CREATE_AUTHORIZED_KEYS_FILE = true;
|
||||
# actual git config
|
||||
ENABLE_PUSH_CREATE_USER = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user