made s3 buckets work

This commit is contained in:
Ingolf Wagner 2024-01-07 00:27:29 +01:00
parent de8a334588
commit cea37fb8ca
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
13 changed files with 76 additions and 103 deletions
nixos
components/network
homes/common
machines/chungus

View file

@ -48,6 +48,7 @@ with lib;
locations."/" = {
root = pkgs.landingpage.override {
jsonConfig = [
{ title = config.networking.hostName; }
{ title = "System Links"; }
{
text = "Syncthings";

View file

@ -40,6 +40,7 @@ let
"loki.chungus" = hosts.chungus;
"prometheus.chungus" = hosts.chungus;
"s3.chungus" = hosts.chungus;
"minio.chungus" = hosts.chungus;
"sync.chungus" = hosts.chungus;
"tdarr.chungus" = hosts.chungus;
"trilium.chungus" = hosts.chungus;

View file

@ -13,6 +13,10 @@ with lib;
units
parallel
wget
curl
];
}
(mkIf config.gui.enable {

View file

@ -3,11 +3,21 @@
services.minio = {
enable = true;
region = "home";
rootCredentialsFile = config.sops.secrets.minioRootCredentials.path;
};
sops.secrets.minioRootCredentials = { };
services.nginx = {
enable = true;
virtualHosts."s3.${config.networking.hostName}.private" = {
locations."/" = {
recommendedProxySettings = true;
proxyWebsockets = true;
proxyPass = "http://localhost:9000";
};
};
virtualHosts."minio.${config.networking.hostName}.private" = {
locations."/" = {
recommendedProxySettings = true;
proxyWebsockets = true;