Skip to content

Commit 94ef00a

Browse files
author
th-ci
committed
Revert "fix: minio改成动态解析域名, 防止启动顺序导致的403错误"
This reverts commit 1abc368.
1 parent 1921d0e commit 94ef00a

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

nginx/conf/conf.d/track.conf.template

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ server {
6060
}
6161

6262
location /minio/ {
63-
# 动态解析minio的域名
64-
set $dynamic "${MINIO_HOST}";
65-
proxy_pass http://$dynamic:${MINIO_PORT}/;
63+
proxy_pass http://${MINIO_HOST}:${MINIO_PORT}/;
6664
}
6765

6866
location /jtt808/ {

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

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

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

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

nginx/conf/nginx.conf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,8 @@ http {
7575
~*(GPTBot|ChatGPT-User|ClaudeBot|PerplexityBot|CCBot) 1;
7676
}
7777

78-
# Docker Compose的默认DNS, 动态解析proxy_pass的域名等情况下, 会用到
78+
# Docker Compose的默认DNS
7979
# https://stackoverflow.com/questions/35744650/docker-network-nginx-resolver
80-
# https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass:~:text=server%20group.-,Parameter%20value%20can%20contain%20variables,-.%20In%20this%20case
8180
resolver 127.0.0.11;
8281
include /etc/nginx/conf.d/*.conf;
8382
}

0 commit comments

Comments
 (0)