docker/nginx/vhosts/minio.conf

41 lines
1.6 KiB
Plaintext
Raw Normal View History

2025-05-16 15:07:04 +08:00
server {
listen 80;
listen 443 ssl;
2025-05-16 15:14:22 +08:00
server_name ${MINIO_DOMAIN};
2025-05-21 16:40:11 +08:00
client_max_body_size 2g;
2025-05-16 15:07:04 +08:00
ssl_certificate /etc/nginx/t-aaron.com.pem;
ssl_certificate_key /etc/nginx/t-aaron.com.key;
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
location / {
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;
2025-05-16 15:14:22 +08:00
proxy_pass http://${MINIO_NAME}:9000;
2025-05-16 15:07:04 +08:00
}
2025-05-21 16:40:11 +08:00
2025-06-12 09:32:01 +08:00
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;
}
2025-05-21 16:40:11 +08:00
location /ta-tech-image/DJIimage {
add_header Content-Disposition 'attachment; filename="$arg_filename"';
add_header x-oss-force-download 'true';
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;
proxy_pass http://${MINIO_NAME}:9000;
}
2025-05-16 15:07:04 +08:00
}