Spaces:
Runtime error
Runtime error
Update scripts/start-minio.sh
Browse files- scripts/start-minio.sh +9 -3
scripts/start-minio.sh
CHANGED
|
@@ -48,7 +48,7 @@ http {
|
|
| 48 |
sendfile on;
|
| 49 |
client_max_body_size 0;
|
| 50 |
|
| 51 |
-
# Browser basic auth used for
|
| 52 |
# S3 SDK / mc signed requests use AWS4-HMAC-SHA256 and must be preserved.
|
| 53 |
map \$http_authorization \$s3_authorization {
|
| 54 |
default \$http_authorization;
|
|
@@ -59,7 +59,13 @@ http {
|
|
| 59 |
listen ${PORT};
|
| 60 |
server_name _;
|
| 61 |
|
| 62 |
-
location = / {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
${ADMIN_AUTH_DIRECTIVES}
|
| 64 |
root /app/public;
|
| 65 |
try_files /index.html =404;
|
|
@@ -155,7 +161,7 @@ NGINX_PID=$!
|
|
| 155 |
|
| 156 |
cat <<EOF
|
| 157 |
[COS_HF] Ready.
|
| 158 |
-
Admin page: / auth=${ADMIN_AUTH_ENABLED} user=${ADMIN_USER}
|
| 159 |
Health live: /minio/health/live
|
| 160 |
Health ready: /minio/health/ready
|
| 161 |
Bucket: ${MINIO_BUCKET}
|
|
|
|
| 48 |
sendfile on;
|
| 49 |
client_max_body_size 0;
|
| 50 |
|
| 51 |
+
# Browser basic auth used for /admin must not be forwarded to MinIO.
|
| 52 |
# S3 SDK / mc signed requests use AWS4-HMAC-SHA256 and must be preserved.
|
| 53 |
map \$http_authorization \$s3_authorization {
|
| 54 |
default \$http_authorization;
|
|
|
|
| 59 |
listen ${PORT};
|
| 60 |
server_name _;
|
| 61 |
|
| 62 |
+
location = /admin {
|
| 63 |
+
${ADMIN_AUTH_DIRECTIVES}
|
| 64 |
+
root /app/public;
|
| 65 |
+
try_files /index.html =404;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
location = /admin/ {
|
| 69 |
${ADMIN_AUTH_DIRECTIVES}
|
| 70 |
root /app/public;
|
| 71 |
try_files /index.html =404;
|
|
|
|
| 161 |
|
| 162 |
cat <<EOF
|
| 163 |
[COS_HF] Ready.
|
| 164 |
+
Admin page: /admin auth=${ADMIN_AUTH_ENABLED} user=${ADMIN_USER}
|
| 165 |
Health live: /minio/health/live
|
| 166 |
Health ready: /minio/health/ready
|
| 167 |
Bucket: ${MINIO_BUCKET}
|