server {
listen 9124;
server_name nexus.xxx.com;
location / {
proxy_pass http://192.168.50.93:8081;
proxy_connect_timeout 600;
proxy_read_timeout 600;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
access_log off;
}
}
不然会出现nexus页面一直在初始化和跨域的错误。