diff options
author | tcmal <me@aria.rip> | 2024-03-30 19:14:37 +0000 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-04-09 13:58:03 +0100 |
commit | d598b5d88da2fc8cfaa839a05986dd5990acd043 (patch) | |
tree | 75fc7fec8b51da7a35f0686e88d5c698e9930a96 /nixos/tests | |
parent | 855667eadc206242c1bfe5e379243193dceca1f2 (diff) |
nixos/akkoma: check that upload and media proxy base url is specified
new versions of akkoma require the upload base url to be specified in order for updates to work properly. this will be a breaking change in 24.05, but for now a reasonable default is set.
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/akkoma.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/tests/akkoma.nix b/nixos/tests/akkoma.nix index 2907017ee3d54..2a9acd64b7c6c 100644 --- a/nixos/tests/akkoma.nix +++ b/nixos/tests/akkoma.nix @@ -36,7 +36,8 @@ let ${pkgs.toot}/bin/toot timeline -1 | grep -F -q "hello world Jamy here" # Test file upload - ${pkgs.toot}/bin/toot upload <(dd if=/dev/zero bs=1024 count=1024 status=none) + echo "y" | ${pkgs.toot}/bin/toot upload <(dd if=/dev/zero bs=1024 count=1024 status=none) \ + | grep -F -q "https://akkoma.nixos.test:443/media" ''; checkFe = pkgs.writers.writeBashBin "checkFe" '' @@ -90,6 +91,9 @@ in "Pleroma.Web.Endpoint" = { url.host = "akkoma.nixos.test"; }; + "Pleroma.Upload" = { + base_url = "https://akkoma.nixos.test:443/media/"; + }; }; }; |