Commit Graph

426 Commits

Author SHA1 Message Date
Donald Zou
71077880ad Merge pull request #1273 from sgtdeagle/name-attachment-file-after-configname
Some checks failed
Docker Build and Push / docker_build (push) Has been cancelled
Docker Build and Push / docker_scan (push) Has been cancelled
change email attachmentname to peerName if not empty
2026-05-10 13:34:52 +08:00
Donald Zou
d51889a222 Merge pull request #1276 from WGDashboard/#1257-fix
#1257 fix
2026-05-10 13:33:05 +08:00
Donald Zou
ece7cd1896 Use network_address for single-address IPs
When parsing allowed_ip entries in API_ping_getAllPeersIpAddress(), detect networks with a single address (ip.num_addresses == 1) and append ip.network_address directly to the parsed list. This replaces the previous host-list construction (list(ip.hosts()) / host[0]) to simplify logic and avoid iterating hosts for /32 or single-address ranges while keeping existing error logging for invalid addresses.
2026-05-10 13:31:58 +08:00
Donald Zou
4d20d00631 Merge pull request #1258 from SnedS91/fix-totp-verification
Some checks failed
Docker Build and Push / docker_build (push) Has been cancelled
Docker Build and Push / docker_scan (push) Has been cancelled
Fix TOTP verification with valid window
2026-05-10 13:13:59 +08:00
sgtdeagle
6ec8d2f201 change email attachmentname to peerName if not empty 2026-05-07 14:27:31 +00:00
sneds91
91de807557 Fix TOTP verification with valid window 2026-05-02 10:54:21 +00:00
Giuseppe Marinelli
90614a6360 Refactor peer schedule job API to use proper REST verbs (#1239)
Some checks failed
Docker Build and Push / docker_build (push) Has been cancelled
Docker Build and Push / docker_scan (push) Has been cancelled
* Fixed quotation marks

* Update wgd.sh

* Refactor peer schedule job API to use proper REST verbs

Replace single POST endpoints with POST/PUT/DELETE for peer schedule jobs.
Add require_fields decorator for request validation. Add fetchPut and
fetchDelete helpers in the frontend.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Add local development with Docker section to docker/README.md

Explains how to mount src/ as a volume for live code editing
using a compose-local.yaml setup.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Update README dev section with frontend build instructions

Replace Vite dev server tip with npm install/build workflow
and docker restart step.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Donald Zou <donaldzou@live.hk>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 20:30:19 +02:00
Donald Zou
2b9a39f124 Added /json to whitelist, and fixed Email.is_ready() 2026-04-03 17:36:30 +08:00
Daan Selen
ebf37c879d fix: white screen in development image 2026-04-02 16:15:52 +08:00
Donald Zou
21bea56426 Merging main branch into v4.3.2-dev
Some checks failed
Docker Build and Push / docker_build (push) Has been cancelled
Docker Build and Push / docker_scan (push) Has been cancelled
2026-03-29 23:05:29 +08:00
Donald Zou
ddaada8e4f Updated version number 2026-03-29 14:30:24 +08:00
Donald Zou
920f832297 Fixed where /api/clients paths are bypassed
Instead of adding `/client` in the white list, we isolate it out to check if the path starts with `APP_PREFIX/client` so then client will bypassed but not `/api/clients`
2026-03-28 23:33:47 +08:00
Donald Zou
22df8a1b1f Removed fileDownload and replaced by using downloadWireguardConfigurationBackup 2026-03-28 23:17:39 +08:00
mahemium
468d1c7642 v4.3.1 bug fix (#1149)
* Fix bugs

* Fixes and improvements

* Update comment

* Reduce comment
2026-03-28 23:13:08 +08:00
mahemium
ba4ac7c1ec v4.3.1 bug fix (#1149)
Some checks failed
Docker Build and Push / docker_build (push) Has been cancelled
Docker Build and Push / docker_scan (push) Has been cancelled
* Fix bugs

* Fixes and improvements

* Update comment

* Reduce comment
2026-02-26 12:15:52 +01:00
freetushkan
06097316ec fix: incorrect backup regex
Some checks failed
Docker Build and Push / docker_build (push) Has been cancelled
Docker Build and Push / docker_scan (push) Has been cancelled
* More accurate backup regex.

Fixed an issue with picking up other backups when the names partially match.

* More accurate backup regex 2.
2026-02-24 10:23:01 +01:00
Daan Selen
f742f9de49 refac: some WGDashboard code 2026-02-07 03:03:35 +01:00
Daan Selen
d2b05b77c8 chore: make the error handling a bit more graceful 2026-01-03 13:32:55 +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
Donald Zou
c35f06b262 Merge branch 'v4.3.2-dev' into app-prefix 2025-12-25 15:39:26 +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
leviofanh
f58e572558 Fix: Fixed support for WGDashboardClient, now its static files are processed separately 2025-12-18 06:40:52 +01:00
leviofanh
9e9f07408d Added full support for the app-prefix parameter 2025-12-18 02:38:05 +01:00
Donald Zou
e5d1a64d7d Update to Python 3.14-alpine and refactor IP parsing
Bump Dockerfile base image from python:3.13.3-alpine to python:3.14-alpine for both build and runtime stages. Refactor IP address parsing in dashboard.py for improved clarity and variable naming.
2025-12-13 16:05:12 +08:00
Donald Zou
f4f0ab27ef Final Testing 2025-12-07 11:20:48 +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
9dd5341fd9 Remove app access log into the database 2025-10-24 09:53:09 +08:00
Donald Zou
18531b71c7 Fixed schedule task delete issue 2025-10-24 08:47:02 +08:00
Donald Zou
8ee16b4173 Fixed for #843 2025-09-17 16:35:57 +08:00
Donald Zou
93a5624294 Update dashboard.py
Fix for #892
2025-09-17 11:50:36 +08:00
Donald Zou
51ba9a86fa Updated AWG 2025-09-16 07:46:25 +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
Gary Deeble
73d701eb08 Fix: Add subject variable to allow test email 2025-09-14 14:00:17 -04:00
Donald Zou
2eb3a17775 Added "State" status for webhook session 2025-09-14 15:38:19 +08:00
Donald Zou
91a3b52a4a Update 2025-09-13 08:23:54 +08:00
Donald Zou
41dbdc8ccd Update dashboard.py 2025-09-11 11:14:19 +08:00
Donald Zou
4644840009 Handle backup folder error 2025-09-11 10:38:30 +08:00
Donald Zou
b3889bb1e3 Feature for #844 2025-09-08 15:12:16 +08:00
Donald Zou
2dce79bb85 Added Jinja template for subject #837 2025-09-07 22:12:22 +08:00
Donald Zou
604d53d2f0 Added feature #525 2025-09-07 17:04:22 +08:00
Donald Zou
9caed31185 Added IP logging for #525 2025-09-05 17:57:50 +08:00
Donald Zou
030c1bdcba Added toggle for client side app 2025-09-05 16:39:59 +08:00
Donald Zou
44af7eba11 Finished forgot password for clients app 2025-09-05 15:48:11 +08:00
Donald Zou
572c223854 Adjusted styles 2025-09-01 22:35:43 +08:00
Donald Zou
632c4f3dc7 Peer history 2025-09-01 17:16:03 +08:00
Donald Zou
caacbfae03 Added peer traffic and session 2025-08-29 16:55:33 +08:00
Donald Zou
3b3c071402 Done for #491 2025-08-28 17:58:02 +08:00