Spaces:
Runtime error
Runtime error
Update scripts/start-minio.sh
Browse files- scripts/start-minio.sh +9 -0
scripts/start-minio.sh
CHANGED
|
@@ -48,6 +48,13 @@ http {
|
|
| 48 |
sendfile on;
|
| 49 |
client_max_body_size 0;
|
| 50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
server {
|
| 52 |
listen ${PORT};
|
| 53 |
server_name _;
|
|
@@ -78,6 +85,7 @@ http {
|
|
| 78 |
|
| 79 |
location /minio/ {
|
| 80 |
proxy_set_header Host \$host;
|
|
|
|
| 81 |
proxy_set_header X-Real-IP \$remote_addr;
|
| 82 |
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
|
| 83 |
proxy_set_header X-Forwarded-Proto \$scheme;
|
|
@@ -86,6 +94,7 @@ http {
|
|
| 86 |
|
| 87 |
location / {
|
| 88 |
proxy_set_header Host \$host;
|
|
|
|
| 89 |
proxy_set_header X-Real-IP \$remote_addr;
|
| 90 |
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
|
| 91 |
proxy_set_header X-Forwarded-Proto \$scheme;
|
|
|
|
| 48 |
sendfile on;
|
| 49 |
client_max_body_size 0;
|
| 50 |
|
| 51 |
+
# Browser basic auth used for the admin page 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;
|
| 55 |
+
~*^Basic "";
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
server {
|
| 59 |
listen ${PORT};
|
| 60 |
server_name _;
|
|
|
|
| 85 |
|
| 86 |
location /minio/ {
|
| 87 |
proxy_set_header Host \$host;
|
| 88 |
+
proxy_set_header Authorization \$s3_authorization;
|
| 89 |
proxy_set_header X-Real-IP \$remote_addr;
|
| 90 |
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
|
| 91 |
proxy_set_header X-Forwarded-Proto \$scheme;
|
|
|
|
| 94 |
|
| 95 |
location / {
|
| 96 |
proxy_set_header Host \$host;
|
| 97 |
+
proxy_set_header Authorization \$s3_authorization;
|
| 98 |
proxy_set_header X-Real-IP \$remote_addr;
|
| 99 |
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
|
| 100 |
proxy_set_header X-Forwarded-Proto \$scheme;
|