From d88137f8b7b5e0f7c4716982392620e610e86ed6 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 25 Nov 2019 21:58:49 +0800 Subject: [PATCH] gitea: enable emails (and password recovery) --- nixbld-etc-nixos/configuration.nix | 7 +++++++ nixbld-etc-nixos/secret_permissions.txt | 1 + 2 files changed, 8 insertions(+) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index 641e3aa..4ff3de7 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -333,8 +333,15 @@ ACTION=="add", SUBSYSTEM=="tty", \ appName = "M-Labs Git"; cookieSecure = true; disableRegistration = true; + mailerPasswordFile = "/etc/nixos/secret/mailerpassword"; extraConfig = '' + [mailer] + ENABLED = true + HOST = ssl.serverraum.org:587 + FROM = sysop@m-labs.hk + USER = sysop@m-labs.hk + [attachment] ALLOWED_TYPES = */* ''; diff --git a/nixbld-etc-nixos/secret_permissions.txt b/nixbld-etc-nixos/secret_permissions.txt index 8cdea8b..bc91931 100644 --- a/nixbld-etc-nixos/secret_permissions.txt +++ b/nixbld-etc-nixos/secret_permissions.txt @@ -1,6 +1,7 @@ -rw------- 1 root root backup-passphrase -rw------- 1 root root email_accounts.nix -rw------- 1 homu homu homu.toml +-rw-rw---- 1 gitea gitea mailerpassword -rw------- 1 matterbridge matterbridge matterbridge.toml -rw------- 1 uwsgi uwsgi mattermost-github-integration.py -rw------- 1 nginx nginx muninpasswd