diff --git a/hosts/mastodon/default.nix b/hosts/mastodon/default.nix index 3d060bda..c2590f10 100644 --- a/hosts/mastodon/default.nix +++ b/hosts/mastodon/default.nix @@ -117,15 +117,16 @@ enableBirdUITheme = true; configureNginx = true; elasticsearch.host = "127.0.0.1"; - ldap.enable = true; - streamingProcesses = config.microvm.vcpu - 1; extraConfig = { ALTERNATE_DOMAINS = lib.concatStringsSep "," config.services.nginx.virtualHosts.${config.services.mastodon.localDomain}.serverAliases; DEFAULT_LOCALE = "de"; }; + ldap.enable = true; + streamingProcesses = config.microvm.vcpu - 1; localDomain = "c3d2.social"; otpSecretFile = config.sops.secrets."mastodon/otp-secret".path; secretKeyBaseFile = config.sops.secrets."mastodon/secret-key".path; + sidekiqThreads = 40; # default 25 are just not doing it anymore, especially after issues smtp = { host = "mail.c3d2.de"; port = 587; @@ -201,6 +202,10 @@ mastodon-init-dirs.script = lib.mkAfter '' cat ${config.sops.secrets."mastodon/env".path} >> /var/lib/mastodon/.secrets_env ''; + + # sidekiq failed with: + # failed to connect: Too many open files @ rb_sysopen + mastodon-sidekiq-all.serviceConfig.LimitNOFILE = "1048576"; }; timers.fedifetcher = {