location url 反向代理到来机的其它端口 gitlab

时间:2021-02-19 01:37:55
        location /nexus {
proxy_pass http://127.0.0.1:8081/nexus;
}
[root@GitMaven conf]# pwd
/var/opt/gitlab/nginx/conf
[root@GitMaven conf]# ls
gitlab-http.conf gitlab-http.conf.tar.-- nginx.conf nginx.conf.bak nginx.conf.tar.--
#在这里gitlab-http.conf 设定!!!
# /opt/gitlab/embedded/sbin/nginx -s reload