X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=nixops%2Fmodules%2Fwebsites%2Ftools%2Fmastodon%2Fmastodon.nix;h=ef7ef576dfc70367ba6e957b44ffa658277280f5;hb=3c8d7f8706433ce0f995f3bf37fdfd348fb9e173;hp=ae2a3f609c179f587b3d57c8e942d4b2d9e461f3;hpb=24a7da33965001415edb022245b289bb5fc49a07;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/nixops/modules/websites/tools/mastodon/mastodon.nix b/nixops/modules/websites/tools/mastodon/mastodon.nix index ae2a3f6..ef7ef57 100644 --- a/nixops/modules/websites/tools/mastodon/mastodon.nix +++ b/nixops/modules/websites/tools/mastodon/mastodon.nix @@ -90,6 +90,8 @@ let STREAMING_CLUSTER_NUM=1 + RAILS_LOG_LEVEL=warn + # LDAP authentication (optional) LDAP_ENABLED=true LDAP_HOST=ldap.immae.eu @@ -117,7 +119,7 @@ let 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 + ln -sf ${varDir}/tmp/cache tmp ''; buildInputs = [ gems gems.ruby pkgs.nodejs pkgs.yarn ]; };