X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=blobdiff_plain;f=nixops%2Fmodules%2Fwebsites%2Ftools%2Fmastodon%2Fmastodon.nix;h=8650ee310b860e9e28e5d6780b60b421c69aa771;hp=770aa2cb5b584cf3157ae92a7116206a4a032c85;hb=591ebd877b8d5465da95fd7e212da5ef747944ca;hpb=c9af72bccc8324af25dde5704867fad0f56418bb diff --git a/nixops/modules/websites/tools/mastodon/mastodon.nix b/nixops/modules/websites/tools/mastodon/mastodon.nix index 770aa2c..8650ee3 100644 --- a/nixops/modules/websites/tools/mastodon/mastodon.nix +++ b/nixops/modules/websites/tools/mastodon/mastodon.nix @@ -84,10 +84,9 @@ let VAPID_PRIVATE_KEY=${env.vapid.private} VAPID_PUBLIC_KEY=${env.vapid.public} - SMTP_SERVER=mail.immae.eu - SMTP_PORT=587 + SMTP_DELIVERY_METHOD=sendmail SMTP_FROM_ADDRESS=notifications@mastodon.immae.eu - SMTP_DELIVERY_METHOD=smtp + SENDMAIL_LOCATION="/run/wrappers/bin/sendmail" PAPERCLIP_ROOT_PATH=${varDir} STREAMING_CLUSTER_NUM=1 @@ -115,6 +114,8 @@ let cp -a $mastodon $out cd $out chmod u+rwX . public + chmod -R u+rwX config/ + sed -i -e 's@^end$@ config.action_mailer.sendmail_settings = { location: ENV.fetch("SENDMAIL_LOCATION", "/usr/sbin/sendmail") }\nend@' config/environments/production.rb RAILS_ENV=production ${gems}/bin/rails assets:precompile rm -rf tmp/cache ln -sf ../../../../../../../${varDir}/tmp/cache tmp