diff --git a/modules/services/server/gitea.nix b/modules/services/server/gitea.nix index 22b82cc..4126778 100644 --- a/modules/services/server/gitea.nix +++ b/modules/services/server/gitea.nix @@ -15,8 +15,10 @@ domain = "git2.kabtop.de"; database.type = "postgres"; database.user = "gitea"; - database.name = "giteadb" + database.name = "giteadb"; + database.host = "127.0.0.1"; database.passwordFile = config.age.secrets."services/gitea/databasePassword".path; + database.createDatabase = false; appName = "Kabtop Git"; mailerPasswordFile = config.age.secrets."services/gitea/mailerPassword".path; settings = { @@ -59,12 +61,11 @@ }; session.COOKIE_SECURE = true; - service.DISABLE_REGISTRATION = true; + service = { + REGISTER_EMAIL_CONFIRM = true; + DISABLE_REGISTRATION = true; + }; }; - extraConfig = '' - [database] - HOST = 127.0.0.1:5432 - ''; }; services.nginx = { @@ -79,8 +80,8 @@ forceSSL = true; locations."/".proxyPass = "http://localhost:3000"; }; + }; }; - age.secrets."services/gitea/mailerPassword" = { file = ../../../secrets/services/gitea/mailerPassword.age; owner = "gitea";