From 9c13e50a543fcd1f533ebf75707f2dd59e86e293 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Thu, 2 Jan 2025 15:53:53 +0400 Subject: [PATCH] im in hte thick of it --- modules/server/fedi/akkoma.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/modules/server/fedi/akkoma.nix b/modules/server/fedi/akkoma.nix index fb008690..8f3013a6 100644 --- a/modules/server/fedi/akkoma.nix +++ b/modules/server/fedi/akkoma.nix @@ -22,6 +22,8 @@ in { akkoma = { enable = true; package = pkgs.akkoma; + extraPackages = + builtins.attrValues { inherit (pkgs) ffmpeg exiftool imagemagick; }; frontends = { primary = { package = pkgs.akkoma-frontends.akkoma-fe; @@ -61,7 +63,7 @@ in { }; "Pleroma.Web.Endpoint" = { url.host = "social.sako.lol"; }; "Pleroma.Upload" = { - base_url = "https://media.social.sako.lol/media"; + base_url = "https://media.social.sako.lol"; filters = map (pkgs.formats.elixirConf { }).lib.mkRaw [ "Pleroma.Upload.Filter.Exiftool.StripMetadata" "Pleroma.Upload.Filter.Dedupe" @@ -71,6 +73,16 @@ in { }; }; }; + nginx.virtualHosts = { + "media.social.sako.lol" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://unix:/run/akkoma/socket"; + }; + }; + }; + ; }; }; }