1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-11-22 15:20:09 +01:00

Update README.md

This commit is contained in:
Donald Zou 2021-04-02 21:14:51 -04:00 committed by GitHub
parent 145e163670
commit 2c0b3be900
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,15 +22,15 @@ Monitoring Wireguard is not convinient, need to login into server and type `wg s
**1. Install Python Dependencies** **1. Install Python Dependencies**
``` ```
$ python3 -m pip install flask tinydb $ python3 -m pip install flask tinydb
``` ```
**2. Install Wireguard Dashboard** **2. Install Wireguard Dashboard**
``` ```
$ git clone https://github.com/donaldzou/Wireguard-Dashboard.git $ git clone https://github.com/donaldzou/Wireguard-Dashboard.git
$ cd Wireguard-Dashboard/src $ cd Wireguard-Dashboard/src
$ python3 dashboard.py $ python3 dashboard.py
``` ```
Access your server with port `10086` ! e.g (http://your_server_ip:10086) Access your server with port `10086` ! e.g (http://your_server_ip:10086)
@ -38,14 +38,14 @@ Access your server with port `10086` ! e.g (http://your_server_ip:10086)
**3. Install with Production Mode (Optional)** **3. Install with Production Mode (Optional)**
``` ```
$ cd Wireguard-Dashboard/src $ cd Wireguard-Dashboard/src
$ export FLASK_APP=dashboard.py $ export FLASK_APP=dashboard.py
$ export FLASK_RUN_HOST=0.0.0.0 $ export FLASK_RUN_HOST=0.0.0.0
$ export FLASK_ENV=development $ export FLASK_ENV=development
$ export FLASK_DEBUG=0 $ export FLASK_DEBUG=0
$ flask run $ flask run
``` ```
## 🔍Example ## 🔍Example
![Index Image](https://github.com/donaldzou/Wireguard-Dashboard/raw/main/src/static/index.png) ![Index Image](https://github.com/donaldzou/Wireguard-Dashboard/raw/main/src/static/index.png)
![Conf Image](https://github.com/donaldzou/Wireguard-Dashboard/raw/main/src/static/configuration.png) ![Conf Image](https://github.com/donaldzou/Wireguard-Dashboard/raw/main/src/static/configuration.png)