Skip to content

Commit 7e7be7d

Browse files
committed
2 parents 917f8be + de990f3 commit 7e7be7d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docker/nginx.conf

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,25 @@ server {
2222
proxy_read_timeout 300s;
2323
}
2424

25+
# ===== Public MinIO proxy (ẩn nội bộ, public qua /s3) =====
26+
location ^~ /s3/ {
27+
proxy_pass http://minio:9000/;
28+
proxy_http_version 1.1;
29+
30+
proxy_set_header Host $host;
31+
proxy_set_header X-Real-IP $remote_addr;
32+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
33+
proxy_set_header X-Forwarded-Proto $scheme;
34+
35+
# Streaming file lớn/HLS
36+
proxy_request_buffering off;
37+
proxy_buffering off;
38+
proxy_read_timeout 600s;
39+
40+
# Cache nhẹ cho ảnh/tệp tĩnh
41+
add_header Cache-Control "public, max-age=31536000, immutable";
42+
}
43+
2544
# ===== WebSocket bridges (nội bộ qua Docker network) =====
2645
# Coding runner WS
2746
location /ws/code/ {

0 commit comments

Comments
 (0)