gitea: fix mailer password permissions

This commit is contained in:
Dmitriy Pleshevskiy 2022-10-16 00:20:29 +03:00
parent 2e83fc54b4
commit 6460f9a1ef
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215
2 changed files with 8 additions and 1 deletions

View file

@ -51,7 +51,7 @@ in
domain = "nix-git.pleshevski.ru";
rootUrl = "https://nix-git.pleshevski.ru";
appName = "Pleshevskiy Git Repositories";
mailerPasswordFile = config.age.secrets.mailserver-users-jan-passfile.path;
mailerPasswordFile = config.age.secrets.gitea-mailserver-passfile.path;
database = {
type = "postgres";
host = "/run/postgresql";
@ -129,9 +129,16 @@ in
};
};
services.nginx.virtualHosts."nix-git.pleshevski.ru" = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://localhost:${toString config.services.gitea.httpPort}/";
};
age.secrets.gitea-mailserver-passfile = {
file = ../../secrets/mailserver-users-jan-passfile.age;
owner = config.services.gitea.user;
group = "gitea";
};
}

Binary file not shown.