im in hte thick of it

This commit is contained in:
Sakooooo 2025-01-02 15:53:53 +04:00
parent cff00e122c
commit 9c13e50a54
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -22,6 +22,8 @@ in {
akkoma = { akkoma = {
enable = true; enable = true;
package = pkgs.akkoma; package = pkgs.akkoma;
extraPackages =
builtins.attrValues { inherit (pkgs) ffmpeg exiftool imagemagick; };
frontends = { frontends = {
primary = { primary = {
package = pkgs.akkoma-frontends.akkoma-fe; package = pkgs.akkoma-frontends.akkoma-fe;
@ -61,7 +63,7 @@ in {
}; };
"Pleroma.Web.Endpoint" = { url.host = "social.sako.lol"; }; "Pleroma.Web.Endpoint" = { url.host = "social.sako.lol"; };
"Pleroma.Upload" = { "Pleroma.Upload" = {
base_url = "https://media.social.sako.lol/media"; base_url = "https://media.social.sako.lol";
filters = map (pkgs.formats.elixirConf { }).lib.mkRaw [ filters = map (pkgs.formats.elixirConf { }).lib.mkRaw [
"Pleroma.Upload.Filter.Exiftool.StripMetadata" "Pleroma.Upload.Filter.Exiftool.StripMetadata"
"Pleroma.Upload.Filter.Dedupe" "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";
};
};
};
;
}; };
}; };
} }