mirror of https://github.com/Aidaho12/haproxy-wi
parent
03623eb7a5
commit
46cb2910eb
12
inc/ha.js
12
inc/ha.js
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
Loading…
Reference in New Issue