hippocampus: dawarich: fix smtp timeout
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
@@ -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
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user