Merge pull request #37308 from etu/gitea-working-git-over-ssh
gitea: fix usage over ssh
This commit is contained in:
commit
a8b81d1c13
@ -40,6 +40,10 @@ let
|
|||||||
SECRET_KEY = #secretkey#
|
SECRET_KEY = #secretkey#
|
||||||
INSTALL_LOCK = true
|
INSTALL_LOCK = true
|
||||||
|
|
||||||
|
[log]
|
||||||
|
ROOT_PATH = ${cfg.log.rootPath}
|
||||||
|
LEVEL = ${cfg.log.level}
|
||||||
|
|
||||||
${cfg.extraConfig}
|
${cfg.extraConfig}
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
@ -65,6 +69,19 @@ in
|
|||||||
description = "gitea data directory.";
|
description = "gitea data directory.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
log = {
|
||||||
|
rootPath = mkOption {
|
||||||
|
default = "${cfg.stateDir}/log";
|
||||||
|
type = types.str;
|
||||||
|
description = "Root path for log files.";
|
||||||
|
};
|
||||||
|
level = mkOption {
|
||||||
|
default = "Trace";
|
||||||
|
type = types.enum [ "Trace" "Debug" "Info" "Warn" "Error" "Critical" ];
|
||||||
|
description = "General log level.";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
user = mkOption {
|
user = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "gitea";
|
default = "gitea";
|
||||||
@ -287,6 +304,7 @@ in
|
|||||||
description = "Gitea Service";
|
description = "Gitea Service";
|
||||||
home = cfg.stateDir;
|
home = cfg.stateDir;
|
||||||
createHome = true;
|
createHome = true;
|
||||||
|
useDefaultShell = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user