diff --git a/app/edit.py b/app/edit.py index f147d01c..b54756ea 100644 --- a/app/edit.py +++ b/app/edit.py @@ -19,6 +19,7 @@ try: servers = sql.get_dick_permit(virt=1) token = sql.get_token(user_id.value) servbackend = form.getvalue('servbackend') + serv = form.getvalue('serv') if servbackend is None: servbackend = "" except: diff --git a/app/funct.py b/app/funct.py index 2b4f72fc..46bc3c2a 100644 --- a/app/funct.py +++ b/app/funct.py @@ -253,6 +253,9 @@ def show_config(cfg): if not line.find("backend"): print('' + line + '
') continue + if not line.find("cache"): + print('
' + line + '
') + continue if "acl" in line or "option" in line or "server" in line: if "timeout" not in line and "default-server" not in line and "#use_backend" not in line: print('') diff --git a/app/sql.py b/app/sql.py index 1fb76a06..ec963a78 100644 --- a/app/sql.py +++ b/app/sql.py @@ -681,7 +681,7 @@ def select_metrics(serv, **kwargs): def select_servers_metrics_for_master(): con, cur = create_db.get_cur() - sql = """select ip from servers where enable = 1 """ + sql = """select ip from servers where metrics = 1 """ try: cur.execute(sql) except sqltool.Error as e: diff --git a/app/templates/add.html b/app/templates/add.html index 93a7ef61..daeedfab 100644 --- a/app/templates/add.html +++ b/app/templates/add.html @@ -73,25 +73,34 @@ - Web acceleration: + Web acceleration(?): - + + + + + + + + WAF(?): + + + + + Optinons: - - + - - - + - - - - - + + + + + + + + WAF(?): + + + + + Optinons: - - - - + - - - - - + + + + + + + + WAF(?): + + + + Optinons: - - + - - +