Change log: https://roxy-wi.org/changelog.py#6_1_3
pull/334/head
Pavel Loginov 2022-08-03 10:16:56 +03:00
parent 3a3994db48
commit 6524f2b566
2 changed files with 6 additions and 3 deletions

View File

@ -123,7 +123,7 @@
- name: Copy module for CentOS
become: true
command: "chdir=/tmp/nginx_src/nginx-{{ nginx_version.stderr.split('/')[1] }} cp objs/ngx_http_modsecurity_module.so /usr/share/nginx/modules/"
command: "chdir=/tmp/nginx_src/nginx-{{ nginx_version.stderr.split('/')[1] }} cp objs/ngx_http_modsecurity_module.so /usr/lib64/nginx/modules/"
when:
- ansible_facts['os_family'] == "RedHat" or ansible_facts['os_family'] == 'CentOS'

View File

@ -22,7 +22,6 @@ rules = ''
cfg = ''
print('Content-type: text/html\n')
funct.check_login(service=1)
funct.page_for_admin(level=2)
try:
@ -30,6 +29,11 @@ try:
except Exception:
pass
if service == 'nginx':
funct.check_login(service=2)
else:
funct.check_login(service=1)
if manage_rules == '1':
serv = funct.is_ip_or_dns(form.getvalue('serv'))
funct.check_is_server_in_group(serv)
@ -37,7 +41,6 @@ if manage_rules == '1':
rules = sql.select_waf_rules(serv, service)
elif waf_rule_id and form.getvalue('config') is None:
serv = funct.is_ip_or_dns(form.getvalue('serv'))
service = form.getvalue('service')
funct.check_is_server_in_group(serv)
title = 'Edit a WAF rule'
waf_rule_file = sql.select_waf_rule_by_id(waf_rule_id)