v2.0.1
Add "Virt" servers, shown only on pages: "Stats" and "Runtime". Bugs fixedpull/19/head
|
@ -3,7 +3,7 @@
|
|||
# Haproxy web interface
|
||||
A simple web interface(user-frendly web GUI) for managing Haproxy servers. Leave your [feedback](https://github.com/Aidaho12/haproxy-wi/issues)
|
||||
|
||||

|
||||

|
||||
|
||||
# Capabilities:
|
||||
1. View statistics of all servers in one place
|
||||
|
@ -36,7 +36,7 @@ $ sudo ./install.sh
|
|||
|
||||
For Apache just do virtualhost with cgi-bin.
|
||||
|
||||

|
||||

|
||||
|
||||
# Settings
|
||||
```
|
||||
|
@ -50,7 +50,7 @@ Edit $HOME_HAPROXY-WI/cgi-bin/haproxy-webintarface.config with your env
|
|||
|
||||
Login http://haproxy-wi-server/users.py, and add: users, groups and servers. Default: admin/admin
|
||||
|
||||

|
||||

|
||||
|
||||
Copy ssh key on all HAproxy servers
|
||||
|
||||
|
@ -61,7 +61,7 @@ For Runtime API enable state file on HAproxt servers and need install socat on a
|
|||
defaults
|
||||
load-server-state-from-file global
|
||||
```
|
||||

|
||||

|
||||
|
||||
# Start and autostart if service
|
||||
```
|
||||
|
|
|
@ -79,9 +79,9 @@ def get_overview():
|
|||
funct.ssh_command(server[2], commands, server_status="1")
|
||||
print('</td><td>')
|
||||
if funct.is_admin():
|
||||
print('<a id="%s" title="Start HAproxy service" onclick = "if (! confirm(\'Start service?\')) return false;"><img src=/image/pic/start.png alt="start" class="icon"></a>' % server[2])
|
||||
print('<a id="%s" title="Stop HAproxy service" onclick = "if (! confirm(\'Stop service?\')) return false;"><img src=/image/pic/stop.png alt="start" class="icon"></a>' % server[2])
|
||||
print('<a id="%s" title="Restart HAproxy service" onclick = "if (! confirm(\'Restart service?\')) return false;"><img src=/image/pic/update.png alt="restart" class="icon"></a>' % server[2])
|
||||
print('<a id="%s" class="start" title="Start HAproxy service" onclick = "if (! confirm(\'Start service?\')) return false;"><img src=/image/pic/start.png alt="start" class="icon"></a>' % server[2])
|
||||
print('<a id="%s" class="stop" title="Stop HAproxy service" onclick = "if (! confirm(\'Stop service?\')) return false;"><img src=/image/pic/stop.png alt="start" class="icon"></a>' % server[2])
|
||||
print('<a id="%s" class="restart" title="Restart HAproxy service" onclick = "if (! confirm(\'Restart service?\')) return false;"><img src=/image/pic/update.png alt="restart" class="icon"></a>' % server[2])
|
||||
print('<a href="/cgi-bin/configshow.py?serv=%s&open=open#conf" title="Show config"><img src=/image/pic/show.png alt="show" class="icon"></a>' % server[2])
|
||||
print('<a href="/cgi-bin/config.py?serv=%s&open=open#conf" title="Edit config"><img src=/image/pic/edit.png alt="edit" class="icon"></a>' % server[2])
|
||||
print('<a href="/cgi-bin/diff.py?serv=%s&open=open#diff" title="Compare config"><img src=/image/pic/compare.png alt="compare" class="icon"></a>' % server[2])
|
||||
|
|
BIN
image/10.jpeg
Before Width: | Height: | Size: 276 KiB |
BIN
image/11.jpeg
Before Width: | Height: | Size: 225 KiB |
BIN
image/2.jpeg
Before Width: | Height: | Size: 865 KiB |
BIN
image/3.jpeg
Before Width: | Height: | Size: 499 KiB |
BIN
image/4.jpeg
Before Width: | Height: | Size: 472 KiB |
BIN
image/5.jpeg
Before Width: | Height: | Size: 265 KiB |
BIN
image/6.jpeg
Before Width: | Height: | Size: 420 KiB |
BIN
image/7.jpeg
Before Width: | Height: | Size: 597 KiB |
BIN
image/8.jpeg
Before Width: | Height: | Size: 329 KiB |
BIN
image/9.jpeg
Before Width: | Height: | Size: 286 KiB |
After Width: | Height: | Size: 289 KiB |
After Width: | Height: | Size: 265 KiB |
After Width: | Height: | Size: 426 KiB |
After Width: | Height: | Size: 270 KiB |
After Width: | Height: | Size: 335 KiB |
After Width: | Height: | Size: 453 KiB |
After Width: | Height: | Size: 290 KiB |
After Width: | Height: | Size: 483 KiB |
After Width: | Height: | Size: 551 KiB |
After Width: | Height: | Size: 888 KiB |
|
@ -269,7 +269,7 @@ $( function() {
|
|||
if( data == 'Bad config, check please ' ) {
|
||||
alert(data);
|
||||
} else {
|
||||
showOverview();
|
||||
setTimeout(showOverview, 2000)
|
||||
}
|
||||
},
|
||||
error: function(){
|
||||
|
|