Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTrunk committed Jan 4, 2024
1 parent 21fb764 commit f0abeca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/services/application/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function getCustomConfigs(specifications) {
'1701.vpn.openvpn': {
mode: 'tcp',
},
'37150.node.HavenNodeMainnet': {
'31750.node.HavenNodeMainnet': {
ssl: true,
},
};
Expand Down
6 changes: 3 additions & 3 deletions src/services/haproxyTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f0abeca

Please sign in to comment.