1
0
Fork 0

mastodon: Fix CDN redirect path

This commit is contained in:
Daniel Kempkens 2022-12-27 22:57:05 +01:00
parent 9bcc7db174
commit 2bbe3b61d0
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
2 changed files with 5 additions and 3 deletions

View file

@ -116,8 +116,8 @@ rec {
src = pkgs.fetchFromGitHub {
owner = "nvim-treesitter";
repo = "nvim-treesitter";
rev = "0cb637ca9f4389172933e5aba36387ab8430b6fb";
sha256 = "071plz2vnn6qsyf9738hvpdh1hd5q9pqzsyyw6hjsn8higz55kab";
rev = "fb36ed4c9e962d9fbfa608cd4a5d9313b1e8a8b1";
sha256 = "097mlnw5a0pzgx3xz11nqysa4drygfl0rm1sf6n5ik2vasllj7m8";
fetchSubmodules = false;
};
});

View file

@ -106,7 +106,9 @@ in
enableACME = false;
locations."/system/" = {
return = "301 https://mastodon-cdn.kempkens.io$request_uri";
extraConfig = ''
rewrite ^/system/?(.*)$ https://mastodon-cdn.kempkens.io/$1 permanent;
'';
};
locations."/" = {