akkoma: various stuff
This commit is contained in:
parent
0ba6f7874b
commit
504bf234db
1 changed files with 22 additions and 11 deletions
|
@ -130,7 +130,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
":media_preview_proxy" = {
|
":media_preview_proxy" = {
|
||||||
enabled = false;
|
enabled = true;
|
||||||
thumbnail_max_width = 1920;
|
thumbnail_max_width = 1920;
|
||||||
thumbnail_max_height = 1080;
|
thumbnail_max_height = 1080;
|
||||||
min_content_length = 128 * 1024;
|
min_content_length = 128 * 1024;
|
||||||
|
@ -145,10 +145,13 @@
|
||||||
"Pleroma.Upload.Filter.AnonymizeFilename"
|
"Pleroma.Upload.Filter.AnonymizeFilename"
|
||||||
];
|
];
|
||||||
|
|
||||||
":mrf".policies = map mkRaw [
|
":mrf" = {
|
||||||
"Pleroma.Web.ActivityPub.MRF.SimplePolicy"
|
transparency = true;
|
||||||
"Pleroma.Web.ActivityPub.MRF.ObjectAgePolicy"
|
policies = map mkRaw [
|
||||||
];
|
"Pleroma.Web.ActivityPub.MRF.SimplePolicy"
|
||||||
|
"Pleroma.Web.ActivityPub.MRF.ObjectAgePolicy"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
":mrf_simple" = {
|
":mrf_simple" = {
|
||||||
reject = mkMap {
|
reject = mkMap {
|
||||||
|
@ -177,13 +180,12 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
":mrf_object_age".threshold = 90 * 24 * 3600;
|
":mrf_object_age".threshold = 180 * 24 * 3600;
|
||||||
|
|
||||||
":frontend_configurations" = {
|
":frontend_configurations" = {
|
||||||
pleroma_fe = mkMap {
|
pleroma_fe = mkMap {
|
||||||
background = "/images/sylvia-ritter-15012323.avif";
|
background = "/images/sylvia-ritter-15012323.avif";
|
||||||
collapseMessageWithSubject = true;
|
collapseMessageWithSubject = true;
|
||||||
hideSiteFavicon = true;
|
|
||||||
streaming = true;
|
streaming = true;
|
||||||
webPushNotifications = true;
|
webPushNotifications = true;
|
||||||
useStreamingApi = true;
|
useStreamingApi = true;
|
||||||
|
@ -195,7 +197,7 @@
|
||||||
modalOnRepeat = true;
|
modalOnRepeat = true;
|
||||||
minimalScopesMode = true;
|
minimalScopesMode = true;
|
||||||
redirectRootNoLogin = "/about";
|
redirectRootNoLogin = "/about";
|
||||||
translationLanguage = "EN";
|
translationLanguage = "en";
|
||||||
theme = "elly-mod";
|
theme = "elly-mod";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -239,16 +241,25 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
kyouma.nginx.virtualHosts = {
|
kyouma.nginx.virtualHosts = {
|
||||||
"florp.social".locations."/".proxyPass = "http://unix:/run/akkoma/socket";
|
"florp.social" = {
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://unix:/run/akkoma/socket";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
locations."^/media(/.*)$".return = "308 https://media.florp.social$1";
|
||||||
|
locations."^/proxy(/.*)$".return = "308 https://cache.florp.social$1";
|
||||||
|
};
|
||||||
|
|
||||||
"media.florp.social" = {
|
"media.florp.social" = {
|
||||||
useACMEHost = "florp.social";
|
useACMEHost = "florp.social";
|
||||||
locations."/".proxyPass = "http://unix:/run/akkoma/socket";
|
locations."/".extraConfig = "rewrite ^(.*)$ /media$1;";
|
||||||
|
locations."/media".proxyPass = "http://unix:/run/akkoma/socket";
|
||||||
};
|
};
|
||||||
|
|
||||||
"cache.florp.social" = {
|
"cache.florp.social" = {
|
||||||
useACMEHost = "florp.social";
|
useACMEHost = "florp.social";
|
||||||
locations."/" = {
|
locations."/".extraConfig = "rewrite ^(.*)$ /proxy$1;";
|
||||||
|
locations."/proxy" = {
|
||||||
proxyPass = "http://unix:/run/akkoma/socket";
|
proxyPass = "http://unix:/run/akkoma/socket";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
proxy_cache akkoma_media_cache;
|
proxy_cache akkoma_media_cache;
|
||||||
|
|
Loading…
Reference in a new issue