2025-03-19 15:04:57 +08:00

17 lines
510 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

server {
listen 80;
# 将这里的域名改成自己的域名
server_name nacos.mall4j.com;
location / {
# 8848端口是nacos启动的端口
# 这里因为是在docker所以这个访问的是docker内部网络非docker部署也可以用ip http://${ip}:8848;
proxy_pass http://192.168.193.128:8848;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}