mirror of https://github.com/Aidaho12/haproxy-wi
parent
c979424d16
commit
fd009361ca
|
@ -132,6 +132,12 @@
|
||||||
command: "chdir=/tmp/nginx_src/nginx-{{ nginx_version.stderr.split('/')[1] }} cp objs/ngx_http_modsecurity_module.so /usr/lib/nginx/modules/"
|
command: "chdir=/tmp/nginx_src/nginx-{{ nginx_version.stderr.split('/')[1] }} cp objs/ngx_http_modsecurity_module.so /usr/lib/nginx/modules/"
|
||||||
when: ansible_facts['os_family'] == 'Debian' or ansible_facts['os_family'] == 'Ubuntu'
|
when: ansible_facts['os_family'] == 'Debian' or ansible_facts['os_family'] == 'Ubuntu'
|
||||||
|
|
||||||
|
- name: Create modules directory
|
||||||
|
become: true
|
||||||
|
file:
|
||||||
|
path: /usr/share/nginx/modules/
|
||||||
|
state: directory
|
||||||
|
|
||||||
- name: Enable module for Centos
|
- name: Enable module for Centos
|
||||||
become: true
|
become: true
|
||||||
shell: echo 'load_module "modules/ngx_http_modsecurity_module.so";' > /usr/share/nginx/modules/mod-waf-connector.conf
|
shell: echo 'load_module "modules/ngx_http_modsecurity_module.so";' > /usr/share/nginx/modules/mod-waf-connector.conf
|
||||||
|
|
|
@ -134,15 +134,19 @@
|
||||||
$("#secIntervals").css("display", "none");
|
$("#secIntervals").css("display", "none");
|
||||||
var ip = []
|
var ip = []
|
||||||
var hostnamea = []
|
var hostnamea = []
|
||||||
{% for s in servers_all %}
|
{%- for s in servers_all %}
|
||||||
{% if s.15|int() == 1 %}
|
{% if service == 'haproxy '%}
|
||||||
|
{% set service_in_table = s.15 %}
|
||||||
|
{% else %}
|
||||||
|
{% set service_in_table = s.14 %}
|
||||||
|
{% endif %}
|
||||||
|
{% if service_in_table|int() == 1 %}
|
||||||
ip.push("{{ s[2] }}");
|
ip.push("{{ s[2] }}");
|
||||||
var host = "{{s[2]}}";
|
var host = "{{s[2]}}";
|
||||||
host = host.replace(/\./g, '\\.');
|
host = host.replace(/\./g, '\\.');
|
||||||
hostnamea.push(host);
|
hostnamea.push(host);
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
{% if servers_all|length == 0 %}
|
{% if servers_all|length == 0 %}
|
||||||
{% include 'include/getstarted.html' %}
|
{% include 'include/getstarted.html' %}
|
||||||
|
|
Loading…
Reference in New Issue