Get Pixelfed running on metal #24

Merged
taeer merged 26 commits from pixelfed-on-metal into main 2024-09-26 15:52:16 +02:00
Showing only changes of commit 2116ac6b27 - Show all commits

View file

@ -172,10 +172,12 @@ in
s3_api.root_domain = ".${fedicfg.api.domain}"; s3_api.root_domain = ".${fedicfg.api.domain}";
}; };
}; };
services.nginx.virtualHosts."garagePortProxy" = { services.nginx.virtualHosts."garagePortProxy" = {
forceSSL = true; forceSSL = true;
enableACME = true; useACME = true;
serverName = "*.${fedicfg.web.rootDomain}"; serverName = fedicfg.web.rootDomain;
serverAliases = lib.mapAttrsToList (bucket: _: "${bucket}.${fedicfg.web.rootDomain}") cfg.ensureBuckets; ## TODO: use wildcard certificates?
locations."/" = { locations."/" = {
proxyPass = "http://localhost:3902"; proxyPass = "http://localhost:3902";
extraConfig = '' extraConfig = ''
@ -183,6 +185,7 @@ in
''; '';
}; };
}; };
systemd.services.ensure-garage = { systemd.services.ensure-garage = {
after = [ "garage.service" ]; after = [ "garage.service" ];
wantedBy = [ "garage.service" ]; wantedBy = [ "garage.service" ];