feat(forgejo): Setup mail

This commit is contained in:
Tom Hubrecht 2024-02-07 10:19:13 +01:00
parent 08577a7f66
commit 22dea9ec7d
4 changed files with 31 additions and 30 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { config, pkgs, ... }:
let let
port = 3000; port = 3000;
@ -36,6 +36,8 @@ in
EMAIL_DOMAIN_ALLOWLIST = "dgnum.eu,*"; EMAIL_DOMAIN_ALLOWLIST = "dgnum.eu,*";
DISABLE_REGISTRATION = false; DISABLE_REGISTRATION = false;
REGISTER_EMAIL_CONFIRM = true;
ENABLE_NOTIFY_MAIL = true;
}; };
log.LEVEL = "Warn"; log.LEVEL = "Warn";
@ -48,7 +50,7 @@ in
}; };
mailer = { mailer = {
ENABLED = false; ENABLED = true;
FROM = "git@infra.dgnum.eu"; FROM = "git@infra.dgnum.eu";
MAILER_TYPE = "smtp"; MAILER_TYPE = "smtp";
SMTP_ADDR = "kurisu.lahfa.xyz"; SMTP_ADDR = "kurisu.lahfa.xyz";
@ -57,6 +59,8 @@ in
USER = "web-services@infra.dgnum.eu"; USER = "web-services@infra.dgnum.eu";
}; };
}; };
mailerPasswordFile = config.age.secrets."forgejo-mailer_password_file".path;
}; };
nginx = { nginx = {

View file

@ -1,27 +0,0 @@
age-encryption.org/v1
-> ssh-ed25519 rHotTw /3o+tx+q7K/9Uzgq6tJDEnIi6+B4widrRWNXwE/Ar2Q
62uhJuFIzBdNQ1fhQQpg6zGbr6jYPpeaTYr/5vKfG5w
-> ssh-ed25519 jIXfPA cr/LauK0lDer6sWDyuLIlLZ6vVAZOQiiMJppyN1VGCY
6GTU5yNu8OYcFuDUM86fbxb+SBgN3mfGCLR5fvyEu6M
-> ssh-ed25519 QlRB9Q 9kLq7vwUMOV2tkZ1PZQdJMz7bTQdKbCKZUJAGnBv4U4
1Zw0WUMIUf5SJEtvyH0UmCxoaCpCrKrh5mpolAKsito
-> ssh-ed25519 r+nK/Q jgHCpA6njdjJBnx+XmKgZQOa5nY0t/WcCrw3zdOs0AU
Yk1cdPZyMfc2p6++kd0I05hQ3vWemCtVLtBpdxT9et8
-> ssh-rsa krWCLQ
AAq77XREUYnKs4N5OzwaMiTqrbg57XfWbYChRxIDl93nSSHCO+OzSHac9LZkEUzx
7/yD0lUzSmP9izW2jMKUgErUVhDEURc+e+oHJGulYmjnUb7Uq6r0CJqUJJOUz1I0
MqLffZNzCDJg+4dEvnoGlYtIAHQAHxkWVRonLadjyT8M6CKvhn2sBptGJV+FzprJ
iiSW1cP1Ogs2Uw6SGQNdj0sPMrOUBr+Ads3mkqMo7o4F4X2lUGqTeQ19acVCvLoS
Ibkq+6+2MMD731bQ1/LHSfrXW2x7MIaj4VWZI/ZtGliASqel3vd/cGdQQUdypEsJ
4JZj8D9OwwLVeexnvSkXhw
-> ssh-ed25519 /vwQcQ eJgbyVM7k9CozIBDiuakc5aRGIIIWw6cNmvgsVAAsHE
+rF4Fu0TenvNLj60FGmyDKNeFBSsUSHsk4gonYk5DcA
-> ssh-ed25519 0R97PA AXBUUdrP3kMxq9s3L6A/6iLutV68wgqDNh/WwhlLKWs
5PTPn0O/npU81KtvNFejU6u17yk8neZm5lg/hGTybFA
-> ssh-ed25519 JGx7Ng wzuo6kXtfltola6VjKZTf9Y3IWwBhZfprcoulluTnEs
b8zw3WW/b6QM/8UZmbL/MAE/QUm18053EOBMpG471qc
-> 5!cP*-grease Ss`m + K]g z{F9?8
9EiZB6aeE5UcJr4Q1CcNVu4rHnY
--- e6OaSbektjO17yPRqxAqfDjDoVF9QafMXCfOFqq0y5g
»FÐÃ?üÀ×êl|`Lä
â4²Ã.0ž<>ç<EFBFBD>%"‰ÈëSZ‰ÞDCÃÈY­Ù„›'S¢U

View file

@ -0,0 +1,24 @@
age-encryption.org/v1
-> ssh-ed25519 rHotTw qQiJYgYb07sFhRjR6IpMvhdw8SoShzHBCn8AUsG/OQw
hL3PJl47hVtLbD/h1LKcbvkXKk7aGhAfaRSjyYxfL20
-> ssh-ed25519 jIXfPA WAYUzqcf17M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<1A>5°ºYÓÿt6LÛ<¶öÁ+

View file

@ -4,7 +4,7 @@ let
in in
lib.setDefault { inherit publicKeys; } [ lib.setDefault { inherit publicKeys; } [
"atticd-credentials_file" "atticd-credentials_file"
"forgejo-database_password_file" "forgejo-mailer_password_file"
"forgejo_runners-token_file" "forgejo_runners-token_file"
"garage-environment_file" "garage-environment_file"
"netbird-auth_client_secret_file" "netbird-auth_client_secret_file"