This commit is contained in:
孙小云 2025-06-12 09:32:01 +08:00
parent 58f6c247d2
commit 3bb64c325b
3 changed files with 30 additions and 0 deletions

View File

@ -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';

View File

@ -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';

View File

@ -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';