diff --git a/nginx/vhosts/minio.conf b/nginx/vhosts/minio.conf index 4186d3a..aee1101 100644 --- a/nginx/vhosts/minio.conf +++ b/nginx/vhosts/minio.conf @@ -17,6 +17,16 @@ server { proxy_pass http://${MINIO_NAME}:9000; } + location /th-airport/ { + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + # 添加以下 header 配置 + add_header Content-Disposition "attachment"; + add_header Content-Type "application/octet-stream"; + proxy_pass http://${MINIO_NAME}:9000; + } + location /ta-tech-image/DJIimage { add_header Content-Disposition 'attachment; filename="$arg_filename"'; add_header x-oss-force-download 'true'; diff --git a/nginxbazhong/vhosts/minio.conf b/nginxbazhong/vhosts/minio.conf index 2e5cf82..178e127 100644 --- a/nginxbazhong/vhosts/minio.conf +++ b/nginxbazhong/vhosts/minio.conf @@ -17,6 +17,16 @@ server { proxy_pass http://${MINIO_NAME}:9000; } + location /th-airport/ { + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + # 添加以下 header 配置 + add_header Content-Disposition "attachment"; + add_header Content-Type "application/octet-stream"; + proxy_pass http://${MINIO_NAME}:9000; + } + location /ta-tech-image/DJIimage { add_header Content-Disposition 'attachment; filename="$arg_filename"'; add_header x-oss-force-download 'true'; diff --git a/nginxdashuju/vhosts/minio.conf b/nginxdashuju/vhosts/minio.conf index 4186d3a..aee1101 100644 --- a/nginxdashuju/vhosts/minio.conf +++ b/nginxdashuju/vhosts/minio.conf @@ -17,6 +17,16 @@ server { proxy_pass http://${MINIO_NAME}:9000; } + location /th-airport/ { + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + # 添加以下 header 配置 + add_header Content-Disposition "attachment"; + add_header Content-Type "application/octet-stream"; + proxy_pass http://${MINIO_NAME}:9000; + } + location /ta-tech-image/DJIimage { add_header Content-Disposition 'attachment; filename="$arg_filename"'; add_header x-oss-force-download 'true';