1
0
Fork 0

mastodon: Redirect pre-CDN file paths

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

Binary file not shown.

View file

@ -86,8 +86,8 @@ in
S3_PROTOCOL = "https";
S3_REGION = secret.mastodon.s3.region;
S3_ENDPOINT = secret.mastodon.s3.endpoint;
S3_ALIAS_HOST = secret.mastodon.s3.hostname;
S3_HOSTNAME = secret.mastodon.s3.hostname;
S3_ALIAS_HOST = "mastodon-cdn.kempkens.io";
S3_HOSTNAME = "mastodon-cdn.kempkens.io";
};
};
@ -105,7 +105,9 @@ in
forceSSL = false;
enableACME = false;
locations."/system/".alias = "/var/lib/mastodon/public-system/";
locations."/system/" = {
return = "301 https://mastodon-cdn.kempkens.io$request_uri";
};
locations."/" = {
tryFiles = "$uri @proxy";