1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 11:37:44 +00:00

Remove akkoma config

This commit is contained in:
RGBCube 2024-01-12 14:44:38 +03:00
parent c5533e5238
commit 2d1ecd3211
No known key found for this signature in database

View file

@ -1,67 +0,0 @@
{ config, ulib, ... }: with ulib;
serverSystemConfiguration {
services.akkoma = let
inherit ((pkgs.formats.elixirConf { }).lib) mkRaw mkTuple;
port = 4778;
in { # enabled {
nginx = {
forceSSL = true;
enableACME = true;
};
config.":pleroma" = {
":rich_media".enabled = true;
":static_fe".enabled = true;
"Pleroma.Captcha".enabled = false;
"Pleroma.Emails.Mailer".enabled = false;
"Pleroma.Web.Plugs.RemoteIp".enabled = true;
};
config.":pleroma".":assets".mascots = [{
url = "https://social.${config.networking.domain}/static/cube.gif"; # TODO
mime_type = "image/gif";
}];
config.":pleroma".":instance" = {
name = "RGBCube's Akkoma Server";
description = "RGBCube's Akkoma server, facism edition.";
email = "social@rgbcu.be";
notify_email = "social@rgbcu.be";
limit = 100000;
remote_limit = 100000;
upload_limit = 100000000; # 100MiB
cleanup_attachments = true;
registrations_open = false;
invites_enabled = true;
max_pinned_statuses = 10;
safe_dm_mention = true;
healthcheck = true;
limit_to_local_content = mkRaw ":unauthenticated";
external_user_syncronization = true;
};
config.":pleroma".":rate_limit" = let
ratelimit = unauth: auth: [(mkTuple [1000 unauth]) (mkTuple [1000 auth])];
in {
authentication = mkTuple [60000 3];
timeline = ratelimit 3 5;
search = ratelimit 3 10;
};
config.":pleroma"."Pleroma.Web.Endpoint" = {
http.ip = "::";
http.port = port;
url.host = "social.${config.networking.domain}";
url.port = 443;
};
};
}