feat(gustave): init mastodon

This commit is contained in:
Luj 2025-01-10 02:33:09 +01:00
parent dd163b483e
commit 0bc6dc0ce8
Signed by: luj
GPG key ID: 6FC74C847011FD83
5 changed files with 73 additions and 0 deletions

View file

@ -21,6 +21,12 @@ in
api_bind_addr = "[::]:3900";
root_domain = ".${api_domain}";
};
s3_web = {
bind_addr = "127.0.0.1:3902";
root_domain = ".cdn.luj.fr";
index = "index.html";
};
rpc_bind_addr = "[::]:3901";
rpc_public_addr = "127.0.0.1:3901";
@ -43,4 +49,23 @@ in
'';
};
};
services.nginx.virtualHosts."cdn.luj.fr" = {
enableACME = true;
forceSSL = true;
serverAliases = [ "cdn.social.luj.fr" ];
locations."/".extraConfig = ''
proxy_pass http://127.0.0.1:3902;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
'';
};
machine.meta.zones."luj.fr".subdomains."social".subdomains."cdn".A = [
config.machine.meta.ips.public.ipv4
];
machine.meta.zones."luj.fr".subdomains."social".subdomains."cdn".AAAA = [
config.machine.meta.ips.public.ipv6
];
}