Changelog: https://roxy-wi.org/changelog.py#6
pull/321/head
Pavel Loginov 2022-04-18 16:24:13 +03:00
parent 03623eb7a5
commit 46cb2910eb
1 changed files with 10 additions and 2 deletions

View File

@ -323,6 +323,14 @@ function create_slave_keepalived(hap, nginx, syn_flood) {
} else if (hap == '1' && nginx == '1') { } else if (hap == '1' && nginx == '1') {
var progress_value = '50'; var progress_value = '50';
} }
var haproxy_docker = 0;
var nginx_docker = 0;
if ($('#hap_docker').is(':checked')) {
haproxy_docker = '1';
}
if ($('#nginx_docker').is(':checked')) {
nginx_docker = '1';
}
$.ajax( { $.ajax( {
url: "options.py", url: "options.py",
data: { data: {
@ -350,10 +358,10 @@ function create_slave_keepalived(hap, nginx, syn_flood) {
toastr.info(data); toastr.info(data);
} }
if (hap === '1') { if (hap === '1') {
create_keep_alived_hap(nginx, 'slave', docker); create_keep_alived_hap(nginx, 'slave', haproxy_docker);
} }
if (hap == '0' && nginx == '1') { if (hap == '0' && nginx == '1') {
create_keep_alived_nginx('slave', docker); create_keep_alived_nginx('slave', nginx_docker);
} }
} }
} ); } );