From 3bb64c325b5419187ef88dfca26beac357c3127c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B0=8F=E4=BA=91?= Date: Thu, 12 Jun 2025 09:32:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx/vhosts/minio.conf | 10 ++++++++++ nginxbazhong/vhosts/minio.conf | 10 ++++++++++ nginxdashuju/vhosts/minio.conf | 10 ++++++++++ 3 files changed, 30 insertions(+) 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';