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