mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-22 15:20:09 +01:00
Naming changed
This commit is contained in:
parent
349076599f
commit
3abbe17910
30
README.md
30
README.md
@ -23,11 +23,11 @@
|
|||||||
- **Update directly from `wgd.sh`:** Now you can update WGDashboard directly from the bash script.
|
- **Update directly from `wgd.sh`:** Now you can update WGDashboard directly from the bash script.
|
||||||
- **Displaying Peers:** You can switch the display mode between list and table in the configuration page.
|
- **Displaying Peers:** You can switch the display mode between list and table in the configuration page.
|
||||||
- 🪚 **Bug Fixed**
|
- 🪚 **Bug Fixed**
|
||||||
- [Peer DNS Validation Fails #67](https://github.com/donaldzou/wireguard-dashboard/issues/67): Added DNS format check. [❤️ @realfian]
|
- [Peer DNS Validation Fails #67](issues/67): Added DNS format check. [❤️ @realfian]
|
||||||
- [configparser.NoSectionError: No section: 'Interface' #66](https://github.com/donaldzou/wireguard-dashboard/issues/66): Changed permission requirement for `etc/wireguard` from `744` to `755`. [❤️ @ramalmaty]
|
- [configparser.NoSectionError: No section: 'Interface' #66](issues/66): Changed permission requirement for `etc/wireguard` from `744` to `755`. [❤️ @ramalmaty]
|
||||||
- [Feature request: Interface not loading when information missing #73](https://github.com/donaldzou/wireguard-dashboard/issues/73): Fixed when Configuration Address and Listen Port is missing will crash the dashboard. [❤️ @js32]
|
- [Feature request: Interface not loading when information missing #73](issues/73): Fixed when Configuration Address and Listen Port is missing will crash the dashboard. [❤️ @js32]
|
||||||
- [Remote Peer, MTU and PersistentKeepalives added #70](https://github.com/donaldzou/wireguard-dashboard/pull/70): Added MTU, remote peer and Persistent Keepalive. [❤️ @realfian]
|
- [Remote Peer, MTU and PersistentKeepalives added #70](pull/70): Added MTU, remote peer and Persistent Keepalive. [❤️ @realfian]
|
||||||
- [Fixes DNS check to support search domain #65](https://github.com/donaldzou/wireguard-dashboard/pull/65): Added allow input domain into DNS. [❤️@davejlong]
|
- [Fixes DNS check to support search domain #65](pull/65): Added allow input domain into DNS. [❤️@davejlong]
|
||||||
- **🧐 Other Changes**
|
- **🧐 Other Changes**
|
||||||
- Moved Add Peer Button into the right bottom corner.
|
- Moved Add Peer Button into the right bottom corner.
|
||||||
|
|
||||||
@ -42,8 +42,8 @@
|
|||||||
- [📝 Requirement](#-requirement)
|
- [📝 Requirement](#-requirement)
|
||||||
- [🛠 Install](#-install)
|
- [🛠 Install](#-install)
|
||||||
- [🪜 Usage](#-usage)
|
- [🪜 Usage](#-usage)
|
||||||
- [Start/Stop/Restart WGDashboard](#startstoprestart-wireguard-dashboard)
|
- [Start/Stop/Restart WGDashboard](#startstoprestart-wgdashboard)
|
||||||
- [Autostart WGDashboard on boot](#autostart-wireguard-dashboard-on-boot)
|
- [Autostart WGDashboard on boot](#autostart-wgdashboard-on-boot)
|
||||||
- [✂️ Dashboard Configuration](#%EF%B8%8F-dashboard-configuration)
|
- [✂️ Dashboard Configuration](#%EF%B8%8F-dashboard-configuration)
|
||||||
- [Dashboard Configuration file](#dashboard-configuration-file)
|
- [Dashboard Configuration file](#dashboard-configuration-file)
|
||||||
- [Generating QR code and peer configuration file (.conf)](#generating-qr-code-and-peer-configuration-file-conf)
|
- [Generating QR code and peer configuration file (.conf)](#generating-qr-code-and-peer-configuration-file-conf)
|
||||||
@ -100,12 +100,12 @@
|
|||||||
1. Download WGDashboard
|
1. Download WGDashboard
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
git clone -b v2.3.1 https://github.com/donaldzou/wireguard-dashboard.git
|
git clone -b v2.3.1 https://github.com/donaldzou/WGDashboard.git wgdashboard
|
||||||
|
|
||||||
2. Open the WGDashboard folder
|
2. Open the WGDashboard folder
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
cd wireguard-dashboard/src
|
cd wgdashboard/src
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Install WGDashboard
|
3. Install WGDashboard
|
||||||
@ -141,7 +141,7 @@
|
|||||||
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
cd Wireguard-Dashboard/src
|
cd wgdashboard/src
|
||||||
-----------------------------
|
-----------------------------
|
||||||
./wgd.sh start # Start the dashboard in background
|
./wgd.sh start # Start the dashboard in background
|
||||||
-----------------------------
|
-----------------------------
|
||||||
@ -159,14 +159,14 @@ In the `src` folder, it contained a file called `wg-dashboard.service`, we can u
|
|||||||
1. Changing the directory to the dashboard's directory
|
1. Changing the directory to the dashboard's directory
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
cd wireguard-dashboard/src
|
cd wgdashboard/src
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Get the full path of the dashboard's directory
|
2. Get the full path of the dashboard's directory
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
pwd
|
pwd
|
||||||
#Output: /root/wireguard-dashboard/src
|
#Output: /root/wgdashboard/src
|
||||||
```
|
```
|
||||||
|
|
||||||
For this example, the output is `/root/wireguard-dashboard/src`, your path might be different since it depends on where you downloaded the dashboard in the first place. **Copy the the output to somewhere, we will need this in the next step.**
|
For this example, the output is `/root/wireguard-dashboard/src`, your path might be different since it depends on where you downloaded the dashboard in the first place. **Copy the the output to somewhere, we will need this in the next step.**
|
||||||
@ -200,8 +200,8 @@ In the `src` folder, it contained a file called `wg-dashboard.service`, we can u
|
|||||||
After=netword.service
|
After=netword.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=/root/wireguard-dashboard/src
|
WorkingDirectory=/root/wgdashboard/src
|
||||||
ExecStart=/usr/bin/python3 /root/wireguard-dashboard/src/dashboard.py
|
ExecStart=/usr/bin/python3 /root/wgdashboard/src/dashboard.py
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
|
|
||||||
@ -244,7 +244,7 @@ In the `src` folder, it contained a file called `wg-dashboard.service`, we can u
|
|||||||
Tasks: 1 (limit: 453)
|
Tasks: 1 (limit: 453)
|
||||||
Memory: 26.1M
|
Memory: 26.1M
|
||||||
CGroup: /system.slice/wg-dashboard.service
|
CGroup: /system.slice/wg-dashboard.service
|
||||||
└─6602 /usr/bin/python3 /root/wireguard-dashboard/src/dashboard.py
|
└─6602 /usr/bin/python3 /root/wgdashboard/src/dashboard.py
|
||||||
|
|
||||||
Aug 03 22:31:26 ubuntu-wg systemd[1]: Started wg-dashboard.service.
|
Aug 03 22:31:26 ubuntu-wg systemd[1]: Started wg-dashboard.service.
|
||||||
Aug 03 22:31:27 ubuntu-wg python3[6602]: * Serving Flask app "WGDashboard" (lazy loading)
|
Aug 03 22:31:27 ubuntu-wg python3[6602]: * Serving Flask app "WGDashboard" (lazy loading)
|
||||||
|
@ -1151,7 +1151,7 @@ Dashboard check update
|
|||||||
def check_update():
|
def check_update():
|
||||||
conf = configparser.ConfigParser(strict=False)
|
conf = configparser.ConfigParser(strict=False)
|
||||||
conf.read(dashboard_conf)
|
conf.read(dashboard_conf)
|
||||||
data = urllib.request.urlopen("https://api.github.com/repos/donaldzou/wireguard-dashboard/releases").read()
|
data = urllib.request.urlopen("https://api.github.com/repos/donaldzou/WGDashboard/releases").read()
|
||||||
output = json.loads(data)
|
output = json.loads(data)
|
||||||
release = []
|
release = []
|
||||||
for i in output:
|
for i in output:
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if session['update'] == "true" %}
|
{% if session['update'] == "true" %}
|
||||||
<li class="nav-item sb-update-li">
|
<li class="nav-item sb-update-li">
|
||||||
<a class="nav-link sb-update-url" href="https://github.com/donaldzou/wireguard-dashboard#-how-to-update-the-dashboard">New Update Available!<span class="dot dot-running"></span></a>
|
<a class="nav-link sb-update-url" href="https://github.com/donaldzou/WGDashboard#-how-to-update-the-dashboard">New Update Available!<span class="dot dot-running"></span></a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
@ -39,7 +39,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<ul class="nav flex-column">
|
<ul class="nav flex-column">
|
||||||
<li class="nav-item"><a href="https://github.com/donaldzou/wireguard-dashboard/releases/tag/{{ session['dashboard_version'] }}"><small class="nav-link text-muted">{{ session['dashboard_version'] }}</small></a></li>
|
<li class="nav-item"><a href="https://github.com/donaldzou/WGDashboard/releases/tag/{{ session['dashboard_version'] }}"><small class="nav-link text-muted">{{ session['dashboard_version'] }}</small></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -73,7 +73,7 @@ start_wgd_debug() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
update_wgd() {
|
update_wgd() {
|
||||||
new_ver=$(python3 -c "import json; import urllib.request; data = urllib.request.urlopen('https://api.github.com/repos/donaldzou/wireguard-dashboard/releases/latest').read(); output = json.loads(data);print(output['tag_name'])")
|
new_ver=$(python3 -c "import json; import urllib.request; data = urllib.request.urlopen('https://api.github.com/repos/donaldzou/WGDashboard/releases/latest').read(); output = json.loads(data);print(output['tag_name'])")
|
||||||
printf "%s\n" "$dashes"
|
printf "%s\n" "$dashes"
|
||||||
printf "| Are you sure you want to update to the %s? (Y/N): " "$new_ver"
|
printf "| Are you sure you want to update to the %s? (Y/N): " "$new_ver"
|
||||||
read up
|
read up
|
||||||
|
Loading…
Reference in New Issue
Block a user