hippocampus: dawarich: fix smtp timeout

This commit is contained in:
2026-02-15 19:42:43 -05:00
parent 712d6a1fd9
commit 91fdc07d18
2 changed files with 12 additions and 1 deletions

View File

@@ -5,11 +5,17 @@
}; };
services.dawarich = { services.dawarich = {
enable = true; enable = true;
package = pkgs.dawarich.overrideAttrs (old: {
# https://github.com/Freika/dawarich/issues/1469
postInstall = (old.postInstall or "") + ''
cp ${./dawarich_smtp_config.rb} $out/config/initializers/smtp_settings.rb
'';
});
webPort = 7392; webPort = 7392;
configureNginx = false; configureNginx = false;
localDomain = "location.crompton.cc"; localDomain = "location.crompton.cc";
smtp = { smtp = {
fromAddress = "cromptonlocation@syzygial.cc"; fromAddress = "automated@syzygial.cc";
user = "automated@syzygial.cc"; user = "automated@syzygial.cc";
passwordFile = config.sops.secrets.dawarich_smtp.path; passwordFile = config.sops.secrets.dawarich_smtp.path;
host = "smtp.protonmail.ch"; host = "smtp.protonmail.ch";

View File

@@ -0,0 +1,5 @@
Rails.application.config.action_mailer.smtp_settings.merge!(
authentication: ENV.fetch('SMTP_AUTHENTICATION', 'login').to_sym,
open_timeout: ENV.fetch('SMTP_OPEN_TIMEOUT', '25').to_i,
read_timeout: ENV.fetch('SMTP_READ_TIMEOUT', '25').to_i
)