stream {
upstream gitlab {
server 192.168.1.100:2224;
}
upstream gitlab8077 {
server 192.168.1.100:8077;
}
server {
listen 2224;
proxy_pass gitlab;
}
server {
listen 8077;
proxy_pass gitlab8077;
}
我是把这个配置放进nginx.conf,不在http 块内就ok
网友评论