X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=virtual%2Fmodules%2Fwebsites%2Ftools%2Fmastodon%2Fdefault.nix;h=d25a072967cd4eb2efddffde0d360fc7c45472b0;hb=d65bf723f3f4548228c24337483286f6c79799cf;hp=b2170b50a4856ff4f6ca1c52fe755c73e2d36e09;hpb=aebd817b115c1a26a4ec70e5cab9af55ea2c1294;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/virtual/modules/websites/tools/mastodon/default.nix b/virtual/modules/websites/tools/mastodon/default.nix index b2170b5..d25a072 100644 --- a/virtual/modules/websites/tools/mastodon/default.nix +++ b/virtual/modules/websites/tools/mastodon/default.nix @@ -88,7 +88,7 @@ in { EnvironmentFile = mastodon.config; PrivateTmp = true; Restart = "always"; - TimeoutSec = 15; + TimeoutSec = 60; Type = "simple"; WorkingDirectory = mastodon.railsRoot; }; @@ -96,6 +96,7 @@ in { unitConfig.RequiresMountsFor = mastodon.varDir; }; + # FIXME: monitor jobs systemd.services.mastodon-sidekiq = { description = "Mastodon Sidekiq"; wantedBy = [ "multi-user.target" ]; @@ -104,7 +105,7 @@ in { environment.RAILS_ENV="production"; environment.DB_POOL="5"; - path = [ pkgs.bundler pkgs.file ]; + path = [ pkgs.imagemagick pkgs.ffmpeg pkgs.bundler pkgs.file ]; script = '' exec bundle exec sidekiq -c 5 -q default -q mailers -q pull -q push