renge/gitea: Migrate to 22.11 options

This commit is contained in:
Simon Bruder 2022-12-10 15:15:11 +01:00
parent a445953d46
commit 60577ad4ea
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -14,15 +14,10 @@ in
rootUrl = "https://git.sbruder.de/"; rootUrl = "https://git.sbruder.de/";
appName = "sbrudergit"; appName = "sbrudergit";
cookieSecure = true;
log.level = "Warn";
lfs = { lfs = {
enable = true; enable = true;
}; };
enableUnixSocket = true; enableUnixSocket = true;
ssh = {
clonePort = 2022;
};
database.type = "postgres"; database.type = "postgres";
mailerPasswordFile = config.sops.secrets.gitea-mail.path; mailerPasswordFile = config.sops.secrets.gitea-mail.path;
settings = { settings = {
@ -43,6 +38,7 @@ in
# internal ssh server # internal ssh server
BUILTIN_SSH_SERVER_USER = "git"; BUILTIN_SSH_SERVER_USER = "git";
START_SSH_SERVER = true; START_SSH_SERVER = true;
SSH_PORT = 2022;
SSH_SERVER_HOST_KEYS = "ssh/gitea.ed25519,ssh/gitea.rsa"; SSH_SERVER_HOST_KEYS = "ssh/gitea.ed25519,ssh/gitea.rsa";
}; };
service = { service = {
@ -53,11 +49,15 @@ in
}; };
session = { session = {
PROVIDER = "file"; 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" = { services.nginx.virtualHosts."git.sbruder.de" = {
enableACME = true; enableACME = true;