update piped & use piped-proxy-minimal-openssl, disable media sync, fix music sync lacking rclone, disable gotosocial ratelimit

This commit is contained in:
chaos 2023-09-30 20:01:59 +01:00
parent 31d7ebfad8
commit 88c10a0d8b
No known key found for this signature in database
5 changed files with 10 additions and 16 deletions

View file

@ -150,11 +150,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1695847501, "lastModified": 1696098855,
"narHash": "sha256-UxYiNfUApZ6IYJ0U83CzRBSRvmApDHMWa5o9WT99ukM=", "narHash": "sha256-bRksfF76An44TGS703+6My+i2o4hooVPdX5qWn9aMfo=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "2a03d86df5075f5060704bb68742af2ace8973e3", "rev": "17ca4470eef819d56f2c7fdd13c3952797fb4512",
"revCount": 18, "revCount": 21,
"type": "git", "type": "git",
"url": "https://forgejo.owo.monster/chaos/piped-flake" "url": "https://forgejo.owo.monster/chaos/piped-flake"
}, },

View file

@ -9,7 +9,8 @@
vendor = other vendor = other
''; '';
in { in {
environment.systemPackages = [ environment.systemPackages = with pkgs; [
rclone
(writeShellScriptBin "rclone-music" '' (writeShellScriptBin "rclone-music" ''
rclone --config ${rcloneConfig} "$@" rclone --config ${rcloneConfig} "$@"
'') '')

View file

@ -52,6 +52,8 @@ in {
statuses-poll-max-options = 10; statuses-poll-max-options = 10;
statuses-media-max-files = 8; statuses-media-max-files = 8;
advanced-rate-limit-requests = 0;
# only enable when testing out mastodon-api applications # only enable when testing out mastodon-api applications
# that use instance version for api compatibility checks # that use instance version for api compatibility checks
# instance-inject-mastodon-version = true; # instance-inject-mastodon-version = true;

View file

@ -48,11 +48,6 @@
dest = "B2-Chaos-Public:"; dest = "B2-Chaos-Public:";
id = "chaos_b2_public"; id = "chaos_b2_public";
} }
{
source = "StorageBox:Media";
dest = "B2-Chaos-Media:";
id = "chaos_b2_media";
}
# Pheonix System's B2 # Pheonix System's B2
{ {
source = "StorageBox:Backups"; source = "StorageBox:Backups";
@ -79,11 +74,6 @@
dest = "B2-Phoenix-Cryptidz-Storage:Public"; dest = "B2-Phoenix-Cryptidz-Storage:Public";
id = "phoenix_b2_public"; id = "phoenix_b2_public";
} }
{
source = "StorageBox:Media";
dest = "B2-Phoenix-Cryptidz-Storage:Media";
id = "phoenix_b2_media";
}
]; ];
}; };
} }

View file

@ -2,6 +2,7 @@
self, self,
config, config,
tree, tree,
pkgs,
... ...
}: let }: let
inherit (builtins) attrNames elem; inherit (builtins) attrNames elem;
@ -78,7 +79,7 @@ in {
proxy = { proxy = {
domain = "proxy.${baseDomain}"; domain = "proxy.${baseDomain}";
internalPort = ports.internalPipedProxy; internalPort = ports.internalPipedProxy;
package = pkgs.piped-proxy-minimal-openssl;
nginx = { nginx = {
forceSSL = false; forceSSL = false;
enableACME = false; enableACME = false;