browser redirect
This commit is contained in:
@@ -78,6 +78,7 @@
|
|||||||
|
|
||||||
User = "minio";
|
User = "minio";
|
||||||
Group = "minio";
|
Group = "minio";
|
||||||
|
Environment = "https://${opts.default-nginx.hostname}/console";
|
||||||
EnvironmentFile = "${opts.credentialsFile}";
|
EnvironmentFile = "${opts.credentialsFile}";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
};
|
};
|
||||||
@@ -124,6 +125,9 @@
|
|||||||
# Create bucket if not exists
|
# Create bucket if not exists
|
||||||
$mc_bin mb --ignore-existing "$alias_name/$bucket"
|
$mc_bin mb --ignore-existing "$alias_name/$bucket"
|
||||||
|
|
||||||
|
# Set bucket limit in future
|
||||||
|
# $mc_bin bucket quota is deprecated
|
||||||
|
|
||||||
# Create policy JSON (full access to that bucket)
|
# Create policy JSON (full access to that bucket)
|
||||||
policy_file=$(mktemp)
|
policy_file=$(mktemp)
|
||||||
cat > "$policy_file" <<EOF
|
cat > "$policy_file" <<EOF
|
||||||
@@ -172,7 +176,7 @@ EOF
|
|||||||
acmeRoot = null;
|
acmeRoot = null;
|
||||||
|
|
||||||
locations."/console" = {
|
locations."/console" = {
|
||||||
proxyPass = "http://localhost:${toString opts.consolePort}/browser";
|
proxyPass = "http://localhost:${toString opts.consolePort}/console";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Add directive for s3like queries, which only accept root path allegedly
|
# Add directive for s3like queries, which only accept root path allegedly
|
||||||
|
|||||||
Reference in New Issue
Block a user