diff options
author | stuebinm | 2024-12-05 01:07:52 +0100 |
---|---|---|
committer | stuebinm | 2024-12-05 01:07:52 +0100 |
commit | 203aa6daede832cf6a56ef56950e04284df38035 (patch) | |
tree | 01236f62bfef7c0726e94f90fc030e269da729a3 /flora/services | |
parent | 5d1d5f16ac89e3abea5a21fcb1ad4cc973f8b424 (diff) |
NixOS 24.11
Diffstat (limited to 'flora/services')
-rw-r--r-- | flora/services/akkoma.nix | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/flora/services/akkoma.nix b/flora/services/akkoma.nix index 13c69fc..db00bbe 100644 --- a/flora/services/akkoma.nix +++ b/flora/services/akkoma.nix @@ -97,6 +97,8 @@ in ":mrf".policies = map mkAtom [ "Pleroma.Web.ActivityPub.MRF.SimplePolicy" ]; + ":http".pool_timeout = 30000; + "Pleroma.Upload" = { filters = map mkAtom [ "Pleroma.Upload.Filter.Exiftool.StripMetadata" @@ -154,7 +156,7 @@ in services.postgresql = { enable = true; - package = pkgs.postgresql_12; + package = pkgs.postgresql_16; ensureDatabases = [ "pleroma" ]; ensureUsers = [ { @@ -162,6 +164,22 @@ in ensureDBOwnership = true; } ]; + settings = { + max_connections = 20; + shared_buffers = "256MB"; + effective_cache_size = "768MB"; + maintenance_work_mem = "64MB"; + checkpoint_completion_target = 0.9; + wal_buffers = "7864kB"; + default_statistics_target = 100; + random_page_cost = 1.1; + effective_io_concurrency = 200; + work_mem = "6553kB"; + huge_pages = "off"; + min_wal_size = "2GB"; + max_wal_size = "8GB"; + }; + # give pleroma access. must be done with lib.mkForce, for some reason authentication = pkgs.lib.mkForce '' # Generated file; do not edit! |