Commit Graph

170 Commits

Author SHA1 Message Date
Daan Selen
f742f9de49 refac: some WGDashboard code 2026-02-07 03:03:35 +01:00
Daan Selen
8ca0363fd0 feat: working AWG 2.0 parameters 2026-02-06 20:18:32 +01:00
Daan Selen
07534b6f66 fix: 1116 2026-02-06 19:00:02 +01:00
Mikhail Solovev
82f170cd57 Fixed Bug. Unpredicted grow of cumulative data counters when using MySQL DB with 7 digits float precision. (#1125)
* build(deps): bump @vue/language-server in /src/static/app (#1063)

Bumps [@vue/language-server](https://github.com/vuejs/language-tools/tree/HEAD/packages/language-server) from 3.1.8 to 3.2.2.
- [Release notes](https://github.com/vuejs/language-tools/releases)
- [Changelog](https://github.com/vuejs/language-tools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vuejs/language-tools/commits/v3.2.2/packages/language-server)

---
updated-dependencies:
- dependency-name: "@vue/language-server"
  dependency-version: 3.2.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump pinia from 3.0.3 to 3.0.4 in /src/static/app (#1065)

Bumps [pinia](https://github.com/vuejs/pinia) from 3.0.3 to 3.0.4.
- [Release notes](https://github.com/vuejs/pinia/releases)
- [Commits](https://github.com/vuejs/pinia/compare/v3.0.3...v3.0.4)

---
updated-dependencies:
- dependency-name: pinia
  dependency-version: 3.0.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump @vitejs/plugin-vue in /src/static/app (#1067)

Bumps [@vitejs/plugin-vue](https://github.com/vitejs/vite-plugin-vue/tree/HEAD/packages/plugin-vue) from 6.0.1 to 6.0.3.
- [Release notes](https://github.com/vitejs/vite-plugin-vue/releases)
- [Changelog](https://github.com/vitejs/vite-plugin-vue/blob/main/packages/plugin-vue/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite-plugin-vue/commits/plugin-vue@6.0.3/packages/plugin-vue)

---
updated-dependencies:
- dependency-name: "@vitejs/plugin-vue"
  dependency-version: 6.0.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump electron-builder in /src/static/app (#1064)

Bumps [electron-builder](https://github.com/electron-userland/electron-builder/tree/HEAD/packages/electron-builder) from 26.0.12 to 26.4.0.
- [Release notes](https://github.com/electron-userland/electron-builder/releases)
- [Changelog](https://github.com/electron-userland/electron-builder/blob/master/packages/electron-builder/CHANGELOG.md)
- [Commits](https://github.com/electron-userland/electron-builder/commits/electron-builder@26.4.0/packages/electron-builder)

---
updated-dependencies:
- dependency-name: electron-builder
  dependency-version: 26.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump @volar/language-server in /src/static/app (#1066)

Bumps [@volar/language-server](https://github.com/volarjs/volar.js/tree/HEAD/packages/language-server) from 2.4.26 to 2.4.27.
- [Release notes](https://github.com/volarjs/volar.js/releases)
- [Changelog](https://github.com/volarjs/volar.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/volarjs/volar.js/commits/v2.4.27/packages/language-server)

---
updated-dependencies:
- dependency-name: "@volar/language-server"
  dependency-version: 2.4.27
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: change docs

* docs: correctly escape pipes

* build(deps): bump npm from 11.6.4 to 11.8.0 in /src/static/app (#1104)

Bumps [npm](https://github.com/npm/cli) from 11.6.4 to 11.8.0.
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/latest/CHANGELOG.md)
- [Commits](https://github.com/npm/cli/compare/v11.6.4...v11.8.0)

---
updated-dependencies:
- dependency-name: npm
  dependency-version: 11.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump gunicorn from 23.0.0 to 24.1.1 in /src (#1103)

Bumps [gunicorn](https://github.com/benoitc/gunicorn) from 23.0.0 to 24.1.1.
- [Release notes](https://github.com/benoitc/gunicorn/releases)
- [Commits](https://github.com/benoitc/gunicorn/compare/23.0.0...24.1.1)

---
updated-dependencies:
- dependency-name: gunicorn
  dependency-version: 24.1.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump is-cidr from 6.0.1 to 6.0.2 in /src/static/app (#1102)

Bumps [is-cidr](https://github.com/silverwind/is-cidr) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/silverwind/is-cidr/releases)
- [Commits](https://github.com/silverwind/is-cidr/compare/6.0.1...6.0.2)

---
updated-dependencies:
- dependency-name: is-cidr
  dependency-version: 6.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump sqlalchemy from 2.0.45 to 2.0.46 in /src (#1101)

Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 2.0.45 to 2.0.46.
- [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases)
- [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/main/CHANGES.rst)
- [Commits](https://github.com/sqlalchemy/sqlalchemy/commits)

---
updated-dependencies:
- dependency-name: sqlalchemy
  dependency-version: 2.0.46
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix npm audit tar vulnerabilities (#1093)

* Harden npm deps via tar override

* chore: retrigger review

---------

Co-authored-by: Super User <root@vpn.northcaptiva.com>

* build(deps): bump @vue/language-server in /src/static/app (#1100)

Bumps [@vue/language-server](https://github.com/vuejs/language-tools/tree/HEAD/packages/language-server) from 3.2.2 to 3.2.4.
- [Release notes](https://github.com/vuejs/language-tools/releases)
- [Changelog](https://github.com/vuejs/language-tools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vuejs/language-tools/commits/v3.2.4/packages/language-server)

---
updated-dependencies:
- dependency-name: "@vue/language-server"
  dependency-version: 3.2.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump vue from 3.5.26 to 3.5.27 in /src/static/app (#1087)

Bumps [vue](https://github.com/vuejs/core) from 3.5.26 to 3.5.27.
- [Release notes](https://github.com/vuejs/core/releases)
- [Changelog](https://github.com/vuejs/core/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vuejs/core/compare/v3.5.26...v3.5.27)

---
updated-dependencies:
- dependency-name: vue
  dependency-version: 3.5.27
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump vite from 7.3.0 to 7.3.1 in /src/static/app (#1082)

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.3.0 to 7.3.1.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v7.3.1/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v7.3.1/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 7.3.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump psutil from 7.2.1 to 7.2.2 in /src

Bumps [psutil](https://github.com/giampaolo/psutil) from 7.2.1 to 7.2.2.
- [Changelog](https://github.com/giampaolo/psutil/blob/master/HISTORY.rst)
- [Commits](https://github.com/giampaolo/psutil/compare/release-7.2.1...release-7.2.2)

---
updated-dependencies:
- dependency-name: psutil
  dependency-version: 7.2.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps): bump gunicorn from 24.1.1 to 25.0.1 in /src

Bumps [gunicorn](https://github.com/benoitc/gunicorn) from 24.1.1 to 25.0.1.
- [Release notes](https://github.com/benoitc/gunicorn/releases)
- [Commits](https://github.com/benoitc/gunicorn/compare/24.1.1...25.0.1)

---
updated-dependencies:
- dependency-name: gunicorn
  dependency-version: 25.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Refine total_sent and total_receive with precision factor

Adjusted total_sent and total_receive calculations for accuracy.
The database engine may have lower floating-point precision than the Python engine. This can lead to situations where the current bytes count compares lower than the database data. This causes an increase in cumulative traffic each time such a precision collision occurs.

* Update WireguardConfiguration.py

It better make some fix in comparation only, and don't touch saved values.

* Update WireguardConfiguration.py

wrong symbol

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: DaanSelen <dselen@systemec.nl>
Co-authored-by: zombu4 <dom@northcaptiva.com>
Co-authored-by: Super User <root@vpn.northcaptiva.com>
2026-02-05 23:22:31 +01:00
DaanSelen
44d274a998 chore: remove unneeded reference 2026-01-15 09:00:20 +01:00
Daan Selen
b6e2f084e6 chore: add implicit TLS support for email 2026-01-14 23:45:42 +01:00
DaanSelen
17e23685ec refac: Email.py module with bugfix (#1058)
* refac: refactor Email.py module for clarity

* chore: rework ready method for dynamic config

* chore: implement resolvconf from v4.3.2-dev
2026-01-03 13:00:23 +01:00
Daan Selen
6239b8237a Merge branch 'amnezia-params' into v4.3.2-dev 2026-01-03 12:36:46 +01:00
Donald Zou
c8967b449b Added checks and output to log wether configuration started properly or not 2025-12-30 21:55:37 +08:00
Donald Zou
72effeecf0 Update WireguardConfiguration.py 2025-12-30 21:47:33 +08:00
Donald Zou
dcaf5eff32 Update WireguardConfiguration.py 2025-12-30 21:38:06 +08:00
DaanSelen
faf9e663b3 chore: trying to inplement the AWG parameters 2025-12-29 17:03:21 +01:00
Donald Zou
a3058d2a28 Added toggle for signing up local clients 2025-12-28 17:02:14 +08:00
Donald Zou
87ff8afefe Add peer tracking toggle to WireGuard dashboard
Introduces a 'peer_tracking' configuration option for WireGuard in DashboardConfig and updates the dashboard background thread to respect this setting. The Vue component now includes a UI toggle for peer tracking, updates the server configuration via API, and conditionally loads tracking data based on the toggle state.
2025-12-19 09:22:45 +08:00
Donald Zou
40e2dddc00 Optimize peer tracking table counts API and UI
Enhanced the /api/getPeerTrackingTableCounts endpoint to support returning counts for all configurations when no name is provided. Updated frontend components to fetch all tracking data in a single request, improving efficiency and user experience. Bumped dashboard version to 4.3.2.
2025-12-19 07:04:07 +08:00
Donald Zou
c7c9d62e80 Update WireguardConfiguration.py 2025-12-15 21:02:22 +08:00
Donald Zou
f5ccbdf9d3 Fixed Restricted Peer might still appear after restricted 2025-12-15 17:13:46 +08:00
Donald Zou
a09342ed2a Added fallback when instance is completely disconnected from internet 2025-12-15 16:25:13 +08:00
Donald Zou
d6a930c04b Bumped version number 2025-12-13 17:20:56 +08:00
Donald Zou
eb65d6fb2a Bumped version, corrected some vue package after update 2025-12-11 07:03:31 +08:00
Donald Zou
f4f0ab27ef Final Testing 2025-12-07 11:20:48 +08:00
Donald Zou
c7bed91626 Merge pull request #1009 from WGDashboard/version-bump-v4.3.0.2
Version Bump to v4.3.0.2
2025-12-06 23:34:11 +08:00
Donald Zou
b9e09bf91b Update DashboardConfig.py 2025-12-06 23:33:38 +08:00
Donald Zou
024072688f Stable for SQLite and PostgreSQL 2025-12-02 14:27:51 +08:00
Donald Zou
fa59de4a09 Update PeerJobs.py 2025-12-02 14:08:55 +08:00
Donald Zou
4756556c82 Update 2025-12-02 14:00:53 +08:00
Donald Zou
66ffc12864 Update PeerJobs.py 2025-12-02 13:59:48 +08:00
Donald Zou
9f609b01de Update PeerJobs.py 2025-12-02 13:52:57 +08:00
Donald Zou
a40df0481f Update 2025-12-02 13:36:45 +08:00
Donald Zou
2de46d97cf Update PeerJobs.py 2025-12-02 13:33:36 +08:00
Donald Zou
bd6d27f282 Update 2025-12-02 13:17:24 +08:00
Donald Zou
61c9f5aab7 Update PeerJobLogger.py 2025-12-02 11:34:07 +08:00
Donald Zou
aba3c5da64 Added function to remove stale jobs logs 2025-12-02 11:24:03 +08:00
Donald Zou
2ee1b3b138 Manage Tracking Feature Done 2025-12-02 11:00:54 +08:00
Donald Zou
876a079be3 Update 2025-12-01 10:15:59 +08:00
Donald Zou
10c9b5635f Fixed duplicated data 2025-10-24 09:53:40 +08:00
Donald Zou
d763867566 Fixed stale job issue 2025-10-24 09:21:48 +08:00
Donald Zou
18531b71c7 Fixed schedule task delete issue 2025-10-24 08:47:02 +08:00
DaanSelen
09a3fddd87 fix: alpine error suicide bug (#950)
Some checks failed
CodeQL / Analyze (javascript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Docker Build and Push / docker_build (push) Has been cancelled
Docker Build and Push / docker_scan (push) Has been cancelled
Mark stale issues and pull requests / stale (push) Has been cancelled
Co-authored-by: Daan Selen <dselen@systemec.nl>
2025-10-14 08:48:33 +02:00
Donald Zou
ca8700ac2a Update PeerJobs.py 2025-09-22 22:50:59 +08:00
Donald Zou
8ee16b4173 Fixed for #843 2025-09-17 16:35:57 +08:00
Donald Zou
a7e0eb52c2 Bump version 2025-09-17 14:48:11 +08:00
Donald Zou
3bd5e02118 Merge pull request #880 from WGDashboard/v4.3-dev-docker
V4.3 dev docker
2025-09-16 16:59:09 +08:00
Donald Zou
77112675ae Update Peer.py 2025-09-16 07:57:30 +08:00
Donald Zou
51ba9a86fa Updated AWG 2025-09-16 07:46:25 +08:00
Donald Zou
a2316c8641 Merge branch 'v4.3-dev' of https://github.com/donaldzou/WGDashboard into v4.3-dev 2025-09-15 22:10:13 +08:00
Donald Zou
f231e9214c Testing with 2 threads 1 worker 2025-09-15 22:09:57 +08:00
Donald Zou
3673813e6a Cleaned some code files 2025-09-15 21:48:00 +08:00
Daan Selen
73a969a6bf feat: slight refactors to improve logic 2025-09-15 13:20:17 +02:00
Gary Deeble
7ac6d6c498 fix: set date on null expiredate for peersharelink 2025-09-15 06:52:34 -04:00