garage: add reverse proxy for S3 access from outside

TODO: subdomains?
This commit is contained in:
Linus Heckemann 2023-09-18 11:18:07 +02:00 committed by Ryan Lahfa
parent 1640f74ea9
commit 0d508468e6

View file

@ -23,4 +23,15 @@
};
};
};
services.nginx = {
enable = true;
virtualHosts."s3.infra.newtype.fr" = {
forceSSL = true;
enableACME = true;
locations."/".proxyPass = "http://[::1]:3900/";
};
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
}