Bugs
pull/42/head
Aidaho12 2018-08-15 14:17:57 +06:00
parent a225ca8d18
commit ebbe0b9a7c
17 changed files with 27 additions and 6 deletions

View File

@ -5,7 +5,7 @@ Web interface(user-friendly web GUI) for managing Haproxy servers. Leave your [f
Support the project
[![Donate](https://img.shields.io/badge/PayPal-Donate-brightgreen.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=5XVQTMKQS57NE&lc=US&Z3JncnB0=) or [Patreon](https://www.patreon.com/haproxy_wi/overview)
[Demo video](https://youtu.be/4IJuRrxcxcg)
[Demo video](https://www.youtube.com/channel/UCo0lCg24j-H4f0S9kMjp-_w)
![alt text](image/haproxy-wi-config-show.jpeg "Show config page")

16
app/index.html Normal file
View File

@ -0,0 +1,16 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>HAProxy web manager</title>
<link href="/image/pic/favicon.ico" rel="icon" type="image/x-icon">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link href="/inc/style.css" rel="stylesheet">
<meta http-equiv="refresh" content="0; url=overview.py" />
</head>
<body>
<p>
Redirecting... Please wait
</p>
</body>
</html>

View File

@ -10,7 +10,7 @@
</pre>
</td>
<td>
<pre style="font-size: 12px; padding-left: 0px; margin-top: -20px;">
<pre style="font-size: 12px; padding-left: 0px;">
{{ service.3 }}
</pre>
</td>

View File

@ -45,7 +45,6 @@ try:
user_id = cookie.get('uuid')
user = sql.get_user_name_by_uuid(user_id.value)
token = sql.get_token(user_id.value)
servers = [('haproxy-wi.error.log','error.log'), ('haproxy-wi.access.log','access.log')]
except:
pass

Binary file not shown.

Before

Width:  |  Height:  |  Size: 361 KiB

After

Width:  |  Height:  |  Size: 294 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 335 KiB

After

Width:  |  Height:  |  Size: 318 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 426 KiB

After

Width:  |  Height:  |  Size: 363 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 270 KiB

After

Width:  |  Height:  |  Size: 283 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 335 KiB

After

Width:  |  Height:  |  Size: 315 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 456 KiB

After

Width:  |  Height:  |  Size: 690 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 290 KiB

After

Width:  |  Height:  |  Size: 281 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 300 KiB

After

Width:  |  Height:  |  Size: 330 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 565 KiB

After

Width:  |  Height:  |  Size: 497 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 551 KiB

After

Width:  |  Height:  |  Size: 352 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 763 KiB

After

Width:  |  Height:  |  Size: 605 KiB

View File

@ -415,7 +415,13 @@ sudo chmod +x /var/www/$HOME_HAPROXY_WI/app/tools/*.py
sudo rm -f /var/www/$HOME_HAPROXY_WI/log/config_edit.log
cd /var/www/$HOME_HAPROXY_WI/app
./update_db.py
sudo chown -R apache:apache /var/www/$HOME_HAPROXY_WI/
sudo chown -R apache:apache /var/log/httpd/
if hash apt-get 2>/dev/null; then
sudo chown -R www-data:www-data /var/www/$HOME_HAPROXY_WI/
sudo chown -R www-data:www-data /var/log/httpd/
sudo chown -R www-data:www-data /var/log/apache2/
else
sudo chown -R apache:apache /var/www/$HOME_HAPROXY_WI/
sudo chown -R apache:apache /var/log/httpd/
fi
exit 0

View File

@ -120,5 +120,5 @@ echo ""
echo "Please set your config"
echo ""
echo "################"
echo "Your config saved in /tmp/haproxy-webintarface.config. Please comare with new and set your env back"
echo "Your config saved in /tmp/haproxy-webintarface.config. Please compare with new and set your env back"
echo ""