From 6460f9a1ef91e2c2da8a1f43c34bb0afd4016819 Mon Sep 17 00:00:00 2001 From: janabhumi Date: Sun, 16 Oct 2022 00:20:29 +0300 Subject: [PATCH] gitea: fix mailer password permissions --- machines/magenta/default.nix | 9 ++++++++- machines/magenta/mail-accounts.nix | Bin 865 -> 867 bytes 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/machines/magenta/default.nix b/machines/magenta/default.nix index 2b10871..cd3f674 100644 --- a/machines/magenta/default.nix +++ b/machines/magenta/default.nix @@ -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"; + }; } diff --git a/machines/magenta/mail-accounts.nix b/machines/magenta/mail-accounts.nix index a7674f9e1b923623fcb9143e6cf9655c832aa901..27d2a695a969aa8c0b620134a72106a849b680f0 100644 GIT binary patch literal 867 zcmV-p1DyN-M@dveQdv+`0PiHEWso&$aGn!K8y_0B^IjFNWOsow-%2O%X3Jbw20Qn%e|91^Ty*6gM>elM zz}n+aQAxyH&=~mRNWFR?L)bl20MnZ|I+hp&;!~g|^-(H*+V-2{LZrM~`{`hK>W3mr zLYsVNj__*5{nL4w@sw^CXqY2nGW~C{tdqIU1-)ZcR5H{Y(=B{w{?xZ{k(3Gcx&2q< zMD{Zt86|B!!0o@QHC$mex}M5uTaS9$+@Gf&gs)+KPMyPTFhsP$HHj)T9bF5M9sSzws|;t{3ZZp zi_E`>TTb2)=v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