Skip to content

Commit 5d71cc4

Browse files
committed
wip: video-minio中minio的域名也需要动态解析
1 parent 211048a commit 5d71cc4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nginx/conf/conf.d/video-minio.conf.template

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ server {
1515

1616
# minio录像云存储
1717
location /minio/ {
18-
proxy_pass http://${MINIO_HOST}:${MINIO_PORT}/;
18+
# 动态解析minio的域名
19+
set $dynamic "${MINIO_HOST}";
20+
proxy_pass http://$dynamic:${MINIO_PORT}/;
1921
}
2022

2123
#access_log /var/log/nginx/host.access.log main;

0 commit comments

Comments
 (0)