diff --git a/secret/hosts/sail.nix b/secret/hosts/sail.nix index 1e5d74b..e2267cd 100644 Binary files a/secret/hosts/sail.nix and b/secret/hosts/sail.nix differ diff --git a/system/nixos/mastodon.nix b/system/nixos/mastodon.nix index 30a1e84..c79fb84 100644 --- a/system/nixos/mastodon.nix +++ b/system/nixos/mastodon.nix @@ -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";