Skip to content

Commit

Permalink
inhibit
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTrunk committed Oct 26, 2023
1 parent 14c7b6e commit 44adb56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/haproxyTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ backend ${domainUsed}backend
const cookieConfig = app.loadBalance || mode === 'tcp' ? '' : ` cookie ${ip.split(':')[0]}:${app.port}`;
if (app.ssl) {
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}`;
domainBackend += `\n server ${ip.split(':')[0]}:${apiPort} ${ip.split(':')[0]}:${app.port} check ${app.serverConfig} ssl verify none ${h2Config}${cookieConfig} inhibit`;
} 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} inhibit`;
}
if (app.timeout) {
domainBackend += `\n timeout server ${app.timeout}`;
Expand Down

0 comments on commit 44adb56

Please sign in to comment.