nginx reverse proxy for api and console port
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user