Proxy settings for minio
This commit is contained in:
parent
29989bc0ab
commit
8f1464c584
1 changed files with 17 additions and 2 deletions
|
@ -1,17 +1,32 @@
|
||||||
{config, ...}: {
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [../nginx-base];
|
imports = [../nginx-base];
|
||||||
|
|
||||||
services.minio = {
|
services.minio = {
|
||||||
enable = true;
|
enable = true;
|
||||||
rootCredentialsFile = config.age.secrets.minio-credentials.path;
|
rootCredentialsFile = config.age.secrets.minio-credentials.path;
|
||||||
region = "eu-central-1";
|
region = "eu-south-1";
|
||||||
|
dataDir = lib.mkForce ["/mnt/hd/minio"];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."cache.aciceri.dev" = {
|
services.nginx.virtualHosts."cache.aciceri.dev" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
extraConfig = ''
|
||||||
|
# To allow special characters in headers
|
||||||
|
ignore_invalid_headers off;
|
||||||
|
# Allow any size file to be uploaded.
|
||||||
|
client_max_body_size 0;
|
||||||
|
# To disable buffering
|
||||||
|
proxy_buffering off;
|
||||||
|
'';
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://127.0.0.1:9000";
|
proxyPass = "http://127.0.0.1:9000";
|
||||||
|
extraConfig = ''
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue