nginx reverse proxy for api and console port

This commit is contained in:
2025-06-12 15:56:47 -05:00
parent 0e8e9afbba
commit c76719df30
3 changed files with 28 additions and 2 deletions
+22
View File
@@ -32,6 +32,11 @@
sopsFile = ./secrets/cloudflare.json;
key = "CF_API_KEY";
};
"minio-root-pass" = {
sopsFile = ./secrets/minio.json;
key = "minioPass";
};
};
};
@@ -72,6 +77,23 @@
};
};
# Declare minio service manually
services.minio-service = {
enable = true;
dataDir = "/data/minio";
rootUser = "admin";
rootPasswordFile = config.sops.secrets."minio-root-pass".path;
dataPort = 9000; # S3 API access
consolePort = 9001; # Admin console access
default-nginx = {
enable = true;
hostname = "imgs.roypository.com";
};
};
# Grub Boot Loader Setup
boot.loader.grub = {
enable = true;