From f0abeca7eb0ebd68d0c4cfb8c7f8b15dbdf51368 Mon Sep 17 00:00:00 2001 From: TheTrunk Date: Thu, 4 Jan 2024 10:54:22 +0700 Subject: [PATCH] fix --- src/services/application/custom.js | 2 +- src/services/haproxyTemplate.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/services/application/custom.js b/src/services/application/custom.js index 5998176..ca44e95 100644 --- a/src/services/application/custom.js +++ b/src/services/application/custom.js @@ -87,7 +87,7 @@ function getCustomConfigs(specifications) { '1701.vpn.openvpn': { mode: 'tcp', }, - '37150.node.HavenNodeMainnet': { + '31750.node.HavenNodeMainnet': { ssl: true, }, }; diff --git a/src/services/haproxyTemplate.js b/src/services/haproxyTemplate.js index bde1405..71e17ef 100644 --- a/src/services/haproxyTemplate.js +++ b/src/services/haproxyTemplate.js @@ -228,12 +228,12 @@ backend ${domainUsed}backend continue; } const apiPort = ip.split(':')[1] || 16127; - const cookieConfig = app.loadBalance || mode === 'tcp' ? '' : ` cookie ${ip.split(':')[0]}:${app.port}`; + const cookieConfig = app.loadBalance || mode === 'tcp' ? '' : `cookie ${ip.split(':')[0]}:${app.port}`; if (app.ssl) { - const h2Config = app.enableH2 ? h2Suffix : ''; + const h2Config = app.enableH2 ? `${h2Suffix} ` : ''; domainBackend += `\n server ${ip.split(':')[0]}:${apiPort} ${ip.split(':')[0]}:${app.port} check ${app.serverConfig} ssl verify none ${h2Config}${cookieConfig}`; } else { - domainBackend += `\n server ${ip.split(':')[0]}:${apiPort} ${ip.split(':')[0]}:${app.port} check ${app.serverConfig}${cookieConfig}`; + domainBackend += `\n server ${ip.split(':')[0]}:${apiPort} ${ip.split(':')[0]}:${app.port} check ${app.serverConfig} ${cookieConfig}`; } if (app.isRdata) { if (mapOfNamesIps[app.name] && app.ips.includes(mapOfNamesIps[app.name])) { // use this ip as a main