diff --git a/app/add.py b/app/add.py index b15bdbc4..9617a159 100644 --- a/app/add.py +++ b/app/add.py @@ -77,7 +77,7 @@ if form.getvalue('mode') is not None: else: ssl_check = "" - if not ip and form.getvalue('port') is not None: + if not ip and port is not None: bind = " bind *:"+ port + " " + ssl + "\n" elif port is not None: bind = " bind " + ip + ":" + port + " " + ssl + "\n" diff --git a/app/templates/add.html b/app/templates/add.html index 865c4b84..4d3e0c7d 100644 --- a/app/templates/add.html +++ b/app/templates/add.html @@ -14,7 +14,7 @@
- +
@@ -27,6 +27,19 @@
Note: If you reconfigure Master server, Slave will reconfigured automatically
+ @@ -42,10 +55,6 @@
IP for bind listner, if empty will be assignet on all IPs. Start typing ip, or press down.
If you use VRRP keep in blank. If you assign an IP, the slave will not start
- - - - + + + + + + + + + @@ -239,10 +270,6 @@
IP for bind listner, if empty will be assignet on all IPs. Start typing ip, or press down.
If you use VRRP keep in blank. If you assign an IP, the slave will not start
- - - - + + + + + @@ -352,10 +396,6 @@ - - - - @@ -465,6 +503,11 @@ + + + + + + + + +

Add listen

Select server: + A "listen" section defines a complete proxy with its frontend and backend parts combined in one section. It is generally useful for TCP-only traffic. +

+ All proxy names must be formed from upper and lower case letters, digits, + '-' (dash), '_' (underscore) , '.' (dot) and ':' (colon). ACL names are + case-sensitive, which means that "www" and "WWW" are two different proxies. +

+ Historically, all proxy names could overlap, it just caused troubles in the + logs. Since the introduction of content switching, it is mandatory that two + proxies with overlapping capabilities (frontend/backend) have different names. + However, it is still permitted that a frontend and a backend share the same + name, as this configuration seems to be commonly encountered. +
Name:
Advanced:Show Advanced settings
Mode: @@ -170,6 +179,11 @@ +
Check:
@@ -199,6 +213,10 @@
Advanced:Show Advanced settings
@@ -224,6 +242,19 @@
Note: If you reconfigure Master server, Slave will reconfigured automatically
+ A "frontend" section describes a set of listening sockets accepting client connections. +

+ All proxy names must be formed from upper and lower case letters, digits, + '-' (dash), '_' (underscore) , '.' (dot) and ':' (colon). ACL names are + case-sensitive, which means that "www" and "WWW" are two different proxies. +

+ Historically, all proxy names could overlap, it just caused troubles in the + logs. Since the introduction of content switching, it is mandatory that two + proxies with overlapping capabilities (frontend/backend) have different names. + However, it is still permitted that a frontend and a backend share the same + name, as this configuration seems to be commonly encountered. +
Name:
Advanced:Show Advanced settings
Mode: @@ -319,6 +346,10 @@

Note: If backend don\t exist, you must create backend first.

Advanced:Show Advanced settings
@@ -345,6 +376,19 @@
Note: If you reconfigure Master server, Slave will reconfigured automatically
+ A "backend" section describes a set of servers to which the proxy will connect to forward incoming connections. +

+ All proxy names must be formed from upper and lower case letters, digits, + '-' (dash), '_' (underscore) , '.' (dot) and ':' (colon). ACL names are + case-sensitive, which means that "www" and "WWW" are two different proxies. +

+ Historically, all proxy names could overlap, it just caused troubles in the + logs. Since the introduction of content switching, it is mandatory that two + proxies with overlapping capabilities (frontend/backend) have different names. + However, it is still permitted that a frontend and a backend share the same + name, as this configuration seems to be commonly encountered. +
Name:
Advanced:Show Advanced settings
Mode: @@ -368,8 +408,6 @@
Check:
@@ -494,6 +537,10 @@
Advanced:Show Advanced settings
diff --git a/inc/script.js b/inc/script.js index f4168cf5..98b088ae 100644 --- a/inc/script.js +++ b/inc/script.js @@ -562,10 +562,8 @@ $( function() { $( "#https-backend" ).click( function(){ if ($('#https-backend').is(':checked')) { $( "#https-hide-backend" ).show( "fast" ); - $( "#path-cert-backend" ).attr('required',true); } else { $( "#https-hide-backend" ).hide( "fast" ); - $( "#path-cert-backend" ).prop('required',false); } }); $( "#options-listen-show" ).click( function(){ @@ -1090,24 +1088,6 @@ $( function() { autoFocus: true, minLength: -1 }); - $( "#path-cert-backend" ).autocomplete({ - source: function( request, response ) { - $.ajax( { - url: "options.py", - data: { - getcerts:1, - serv: $("#serv3").val(), - token: $('#token').val() - }, - success: function( data ) { - data = data.replace(/\s+/g,' '); - response(data.split(" ")); - } - } ); - }, - autoFocus: true, - minLength: -1 - }); $( "#interface" ).autocomplete({ source: function( request, response ) { $.ajax( { diff --git a/inc/style.css b/inc/style.css index 34ee44e9..587c7603 100644 --- a/inc/style.css +++ b/inc/style.css @@ -250,6 +250,9 @@ pre { .advance { display: none; } +.advance-show { + font-size: 13px !important; +} .advance-show a{ color: #9d9d9d !important; }