nginx 01 30001 代理 nginx 02 28000 nginx 02 又代理 harbor 28001请写出nginx 配置与 harboryml 的配置。
nginx 配置:
http {
upstream harbor {
server nginx02:28001;
}
server {
listen 30001;
location / {
proxy_pass http://nginx02:28000;
}
}
server {
listen 28001;
location / {
proxy_pass http://harbor;
}
}
}
harbor.yml 配置:
http:
port: 28001
proxy:
secret_key: "harbor_secret_key"
http_proxy:
enabled: true
http_proxy: "http://nginx01:30001"
原文地址: https://www.cveoy.top/t/topic/cKie 著作权归作者所有。请勿转载和采集!