Skip to content

Commit dccd8dd

Browse files
committed
Update nginx.conf
1 parent 5ce2345 commit dccd8dd

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

docker/nginx.conf

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ server {
3232
proxy_pass http://minio:9000/;
3333
proxy_http_version 1.1;
3434

35-
proxy_set_header Host $host;
35+
# !!! ép Host về tên upstream để MinIO không thử virtual-host-style
36+
proxy_set_header Host minio;
37+
3638
proxy_set_header X-Real-IP $remote_addr;
3739
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
3840
proxy_set_header X-Forwarded-Proto $scheme;
@@ -50,13 +52,6 @@ server {
5052
location ~ \.ts$ { add_header Cache-Control "public, max-age=31536000, immutable"; }
5153
}
5254

53-
location ~* \.m3u8$ {
54-
proxy_pass http://minio:9000;
55-
proxy_request_buffering off;
56-
proxy_buffering off;
57-
add_header Cache-Control "no-store";
58-
}
59-
6055
# ===== WebSocket bridges (nội bộ qua Docker network) =====
6156
# Coding runner WS
6257
location /ws/code/ {

0 commit comments

Comments
 (0)