fix: 修改后端容器名(微服务)
This commit is contained in:
@@ -22,7 +22,7 @@ server {
|
||||
location /admin-api {
|
||||
# 后端服务地址
|
||||
# 方案1:使用容器名(推荐,自动 DNS 解析)- 如果后端监听 0.0.0.0
|
||||
proxy_pass http://aiot-server:48080/admin-api;
|
||||
proxy_pass http://aiot-gateway:48080/admin-api;
|
||||
|
||||
# 方案2:直接使用后端容器 IP(当前后端 IP: 172.22.0.3)
|
||||
# 如果方案1不行,取消注释下面这行,注释掉上面那行
|
||||
|
||||
Reference in New Issue
Block a user