From 178ae6f82ecbaed212fb74a0f26b5c12ac5c73d2 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Wed, 30 Nov 2022 00:13:09 +0100 Subject: [PATCH] mastodon: adjustments for smaller install --- system/nixos/mastodon.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/system/nixos/mastodon.nix b/system/nixos/mastodon.nix index 6f0280f..7138f05 100644 --- a/system/nixos/mastodon.nix +++ b/system/nixos/mastodon.nix @@ -22,7 +22,9 @@ in streamingPort = 55000; webPort = 55001; sidekiqPort = 55002; - enableUnixSocket = false; + enableUnixSocket = true; + + sidekiqThreads = 12; trustedProxy = "127.0.0.1"; @@ -85,13 +87,13 @@ in }; locations."@proxy" = { - proxyPass = "http://127.0.0.1:55001"; + proxyPass = "http://unix:/run/mastodon-web/web.socket"; proxyWebsockets = true; extraConfig = nginx-extra-proxy-settings; }; locations."/api/v1/streaming/" = { - proxyPass = "http://127.0.0.1:55000"; + proxyPass = "http://unix:/run/mastodon-streaming/streaming.socket"; proxyWebsockets = true; extraConfig = nginx-extra-proxy-settings; };