File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff 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/ {
You can’t perform that action at this time.
0 commit comments