hotbaby commented on issue #4942:
URL: https://github.com/apache/apisix/issues/4942#issuecomment-1168614851
如果jenkins部署在kubernetes里,可以在pod中再添加一个Nginx的container,通过Nginx将流量再转发给jenkins,并设置`X-Forwarded-Port`为80,可以规避此问题。
```nginx
server {
listen 80;
listen [::]:80;
server_name localhost;
#access_log /var/log/nginx/host.access.log main;
location / {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port 80;
proxy_pass http://localhost:8080;
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]