This commit is contained in:
parent
58f6c247d2
commit
3bb64c325b
|
|
@ -17,6 +17,16 @@ server {
|
||||||
proxy_pass http://${MINIO_NAME}:9000;
|
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 {
|
location /ta-tech-image/DJIimage {
|
||||||
add_header Content-Disposition 'attachment; filename="$arg_filename"';
|
add_header Content-Disposition 'attachment; filename="$arg_filename"';
|
||||||
add_header x-oss-force-download 'true';
|
add_header x-oss-force-download 'true';
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,16 @@ server {
|
||||||
proxy_pass http://${MINIO_NAME}:9000;
|
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 {
|
location /ta-tech-image/DJIimage {
|
||||||
add_header Content-Disposition 'attachment; filename="$arg_filename"';
|
add_header Content-Disposition 'attachment; filename="$arg_filename"';
|
||||||
add_header x-oss-force-download 'true';
|
add_header x-oss-force-download 'true';
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,16 @@ server {
|
||||||
proxy_pass http://${MINIO_NAME}:9000;
|
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 {
|
location /ta-tech-image/DJIimage {
|
||||||
add_header Content-Disposition 'attachment; filename="$arg_filename"';
|
add_header Content-Disposition 'attachment; filename="$arg_filename"';
|
||||||
add_header x-oss-force-download 'true';
|
add_header x-oss-force-download 'true';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue