nginx 配置:

http {
    upstream harbor_backend {
        server 192.168.1.2:28000;
    }

    server {
        listen 30001;
        server_name nginx01;

        location / {
            proxy_pass http://harbor_backend;
        }
    }
}

harbor.yml 配置:

hostname: nginx02
http:
  port: 28001
proxy:
  http:
    proxyList:
      - http://localhost:28000
nginx 01 30001 代理 nginx 02 28000 nginx 02 又代理 harbor v28 28001请写出nginx 配置与 harboryml 的配置。

原文地址: https://www.cveoy.top/t/topic/cKij 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录