最近服务器将80端口关闭了,在客户端使用Docker的时候出现了问题,官方文档是这样写的
In the same train of thought, you must make sure you are properly sending the X-Forwarded-Proto, X-Forwarded-For, and Host headers to their “client-side” values. Failure to do so usually makes the registry issue redirects to internal hostnames or downgrading from https to http.
由于我在Nginx配置文件中将 X-Forwarded-Proto 写成了 X_Forwarded_Proto,导致在Client PUSH的时候一直报 connect: connection refused,以为Client端没有使用HTTPS来连接,最后按上面修改后就正常了。

当服务器的80端口被关闭后,使用Docker的客户端遇到了连接问题。错误源于Nginx配置文件中`X-Forwarded-Proto`头部拼写错误,将其误写为`X_Forwarded_Proto`。这导致了在尝试ClientPUSH时持续出现'connect: connection refused'的错误,因为客户端似乎没有通过HTTPS连接。修正配置后,问题得到解决,客户端能够正常工作。
1880

被折叠的 条评论
为什么被折叠?



