proxy_pass http://127.0.0.1:3000; # 指定后端地址 proxy_set_header Host $host; #传递真实域名 proxy_set_header X-Real-IP $remote_addr; #传递用户真实 IP proxy_set