renge/gitea: Migrate to 22.11 options
This commit is contained in:
parent
a445953d46
commit
60577ad4ea
|
@ -14,15 +14,10 @@ in
|
|||
|
||||
rootUrl = "https://git.sbruder.de/";
|
||||
appName = "sbrudergit";
|
||||
cookieSecure = true;
|
||||
log.level = "Warn";
|
||||
lfs = {
|
||||
enable = true;
|
||||
};
|
||||
enableUnixSocket = true;
|
||||
ssh = {
|
||||
clonePort = 2022;
|
||||
};
|
||||
database.type = "postgres";
|
||||
mailerPasswordFile = config.sops.secrets.gitea-mail.path;
|
||||
settings = {
|
||||
|
@ -43,6 +38,7 @@ in
|
|||
# internal ssh server
|
||||
BUILTIN_SSH_SERVER_USER = "git";
|
||||
START_SSH_SERVER = true;
|
||||
SSH_PORT = 2022;
|
||||
SSH_SERVER_HOST_KEYS = "ssh/gitea.ed25519,ssh/gitea.rsa";
|
||||
};
|
||||
service = {
|
||||
|
@ -53,11 +49,15 @@ in
|
|||
};
|
||||
session = {
|
||||
PROVIDER = "file";
|
||||
COOKIE_SECURE = true;
|
||||
};
|
||||
log = {
|
||||
LEVEL = "Warn";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ cfg.ssh.clonePort ];
|
||||
networking.firewall.allowedTCPPorts = [ cfg.settings.server.SSH_PORT ];
|
||||
|
||||
services.nginx.virtualHosts."git.sbruder.de" = {
|
||||
enableACME = true;
|
||||
|
|
Loading…
Reference in a new issue