那执行器改成http,支付系统指定http调用和https调用,如果https,使用nginx转发,提供nginx配置文件。
This commit is contained in:
1 parent
ee9b209e3d
commit
cf68147d08
7 files changed
+60
-50
No files matched your search
@@ -49,11 +49,11 @@ public class ChainExecutorClient {
|
||||
java.net.InetAddress address = IntranetAddress.parse(target.getHost());
|
||||
if (target.getRawUserInfo() != null || target.getRawQuery() != null || target.getRawFragment() != null
|
||||
|| target.getPath() != null && !target.getPath().isEmpty()
|
||||
|| !("https".equals(target.getScheme()) || address.isLoopbackAddress() && "http".equals(target.getScheme()))
|
||||
|| !("https".equals(target.getScheme()) || "http".equals(target.getScheme()))
|
||||
|| token == null || token.length() < 32) {
|
||||
throw new IllegalArgumentException("内网执行服务需配置内网 HTTPS 根地址和至少32位服务凭据;仅回环允许 HTTP");
|
||||
throw new IllegalArgumentException("内网执行服务需配置内网 HTTP/HTTPS 根地址和至少32位服务凭据");
|
||||
}
|
||||
log.info("内网链上执行通道已启用,开始验证执行器服务");
|
||||
log.info("内网链上执行通道已启用,开始验证执行器服务,传输协议={}", target.getScheme().toUpperCase());
|
||||
requireResponse("/internal/v1/connectivity", "CONNECTED", "联通测试");
|
||||
requireResponse("/internal/v1/readiness", "READY", "业务就绪检查");
|
||||
log.info("内网链上执行器服务验证通过,联通状态=CONNECTED,业务状态=READY");
|
||||
|
||||
Reference in new issue
Block a user