mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 10:09:04 +02:00
feat(gustave): init mastodon
This commit is contained in:
parent
dd163b483e
commit
0bc6dc0ce8
5 changed files with 73 additions and 0 deletions
|
@ -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
|
||||
];
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue