Commit Graph

56 Commits

Author SHA1 Message Date
Skyline 644f027756 Document HTTP API; align Android session idle with companion app
Add README table of contents and HTTP API reference material.
Session cookies respect a higher idle floor for requests with
X-WGUI-Client: android; passkey login uses the same effective idle.
2026-05-03 21:35:41 -06:00
Skyline ce6cd0d47e Add README table of contents and HTTP API reference 2026-05-03 17:54:00 -06:00
Skyline cdb4a1a764 Add Android client integration on the server
- Digital Asset Links endpoint and passkey origin handling for the mobile app

- FCM device token registration and push notification plumbing

- Session cookie configuration for native WebView flows

- Routes, locales, README, and small traffic/status handler updates
2026-05-03 17:45:28 -06:00
Skyline ee0399b26c Improve WireGuard apply flow and shell UI
- Respect tunnel running state when saving config; avoid implicit restart when down
- Optional pending wg.conf when tunnel stopped (WGUI_WGCONF_PENDING_WHEN_TUNNEL_STOPPED)
- wg-quick: best-effort down before up with retry on transient failures
- Dashboard: explicit green/red badges for server active/inactive (light theme)
- Client cards: metadata chips row uses full card width below header row
- Locales and README updates for behavior and troubleshooting
2026-05-01 17:04:03 -06:00
Skyline 1b07fe442d WireGuard UI v2: shell UI, i18n, passkeys, traffic, dashboard, logs
Summary
- Replace single-page flow with fixed shell layout (sidebar, top bar, Apply config
  orchestration) and wgshell.css styling.
- Add English/Spanish UI via embedded locale JSON and template tr() + client WG_T/wgT().

New packages / modules
- locale/: embedded es.json/en.json, T(), MsgMap(), JSONForHTML for shell pages.
- handler/render_helpers.go: renderShell, injectUILang, nav apply-config badge.
- handler/passkeys.go: WebAuthn register/login begin+finish, rename/remove, clear on
  global Passkeys disable; session passkey credential tracking.
- handler/wg_traffic_cache.go: in-memory WireGuard counter sampling, traffic series API.
- handler/wg_status_devices.go: wgctrl device/peer views, dashboard KPI payloads,
  live peer stats for client cards.
- handler/logs_tail.go: optional file tail + systemd/journal sections for Logs page.
- util/wg_quick.go, util/wg_synconf.go: gated wg-quick and wg syncconf after apply.
- util/sysctl_linux.go + sysctl_stub.go: optional IPv4 ip_forward sysctl.
- util/host_uptime.go, util/server_ui.go: host uptime and server UI helpers.

Templates & UX
- New pages: dashboard.html, traffic.html, logs.html; extended global_settings,
  login (passkey), profile, users_settings, base shell, clients card grid with
  peer traffic polling.

Model / routes
- Global settings: session timeout, UI theme/language, realtime stats, Passkeys toggle;
  multi-user CRUD, suspend, revoke sessions, admin role APIs (main.go + routes).

Docs
- README: WireGuard UI v2 section, expanded Features, operator notes, v2 screenshot
  (GitHub user-attachments CDN URL).

Chore
- .gitignore: .DS_Store, wireguard-ui-v2 build artifact; English comments across
  handlers, templates, CSS, helper.js.
2026-04-30 20:51:42 -06:00
0xCA fa33d3f66e
Session improvements (#510) 2024-01-06 09:11:20 +01:00
Khanh Ngo 769883f020
add PersistentKeepalive config to server-side Peer config (#515) 2023-12-31 21:08:13 +01:00
Khanh Ngo 8cfe9a3d5b
Resolve conflict 2023-12-29 10:13:30 +01:00
0xCA 41bf0bc92c
Telegram support (#488) 2023-12-29 09:22:12 +01:00
Alexandra Stone 37f459c535
Minor readme tweak. 2023-12-27 14:47:15 -07:00
Alexandra Stone a8e96f5457
Correct flag to helo and make shorter 2023-12-27 14:42:31 -07:00
Daniel Tilă c2a6ced991
Describe the fact you can expose other port than WGUI_SERVER_LISTEN_PORT (#507) 2023-12-27 10:10:23 +01:00
0xCA a9be53899c
Subnet range selector, interface fixes (#481) 2023-12-27 09:08:55 +01:00
Vahid e73047b14f
Feature: Unix domain socket support (#492)
Co-authored-by: Khanh Ngo <k@ndk.name>
2023-12-25 20:31:11 +01:00
Cameron 3024d36d76
env variable file support (#391) 2023-12-25 19:58:31 +01:00
Alexandra Stone aac9ba8b50
Added variable to readme 2023-10-27 11:59:55 -06:00
Gabriel Klavans 28f3e820f0
Remove duplicate env var entry (#392) 2023-06-22 21:51:38 +02:00
A A R I X b9e5ddf194
Added BIND_ADDRESS environment variable to the project README (#384) 2023-06-06 21:11:43 +02:00
Khanh Ngo 8ac33a0278
GHA fixes 2023-05-24 21:21:44 +02:00
andycandy-de e9357d83e2
Added Table to global settings (#308) 2023-05-24 12:06:05 +02:00
Khanh Ngo ac99317ba3
Update README.md 2023-03-17 09:53:57 +01:00
ByteDream 4fc52b62d2
Replace go.rice with native go embedding (#331) 2023-03-16 08:40:04 +01:00
Matze abef29bf17
better error-handling if no public IP could be detected (#323) 2023-03-15 21:41:46 +01:00
Paul Dee 814093cdd3
Stamp git commit into docker builds. (#325) 2023-03-15 21:39:20 +01:00
Paul Dee b80c44af43
Fix for fwmark (#279) 2023-03-15 21:37:39 +01:00
ByteDream b8341dd36f
Add docker-compose examples (#339) 2023-03-15 21:35:57 +01:00
ByteDream 3d59c7d0de
Add log levels (#332) 2023-03-15 21:29:08 +01:00
ByteDream a866977cb0
Add favicon (#288) 2023-02-16 17:09:24 +01:00
Alexander Sulfrian 227e51b9cf
SMTP: Support disabling encryption (#297) 2023-02-16 17:06:45 +01:00
Nenodema f256668a99
WireGaurd --> WireGuard (Typo) (#281) 2022-12-26 10:12:09 +01:00
Khanh Ngo 86e8ad41cb
feat: update user profile (#280) 2022-12-21 21:52:00 +01:00
Khanh Ngo 24a0a9f5ee
Update readme 2022-12-13 22:48:00 +01:00
Khanh Ngo ea55b36a6f
Update readme and code comments (#272) 2022-12-13 22:44:11 +01:00
Paul Dee 99b586f1f7
README improvements. (#268) 2022-12-13 21:31:19 +01:00
mojothemonkey2 de6ad05577
Manage Wireguard restarts from docker container (#267) 2022-12-13 19:50:14 +01:00
Cedrik Heusser eab8d55d63
Add SMTP_ENCRYPTION Options to README (#237) 2022-12-02 23:07:12 +01:00
Marcus Wichelmann 2c2db61158
Add support for password hashes as an optional alternative to plaintext passwords (#216) 2022-09-30 10:24:54 +02:00
Grigory Stupnikov 3143268465
Update screenshot (#203) 2022-07-14 08:39:01 +02:00
Khanh Ngo ced211a822
Update README 2022-04-26 21:11:13 +02:00
Khanh Ngo 203fe927fd
Update README (#191) 2022-04-26 21:04:22 +02:00
Fin Christensen 569eaaee37
Add environment variables for configuration (#189) 2022-04-26 20:35:35 +02:00
Quentin Machu 87b08a8f7c
*: allows for BASE_PATH configuration (#183) 2022-04-25 09:17:13 +02:00
slch 100c4ee1f4
Custom wg conf template (#179) 2022-04-24 09:42:08 +02:00
Tagada af62be378f
SMTP support (#146) 2022-01-29 09:01:37 +01:00
Seubpong Monsar 4093722926
Fixed typo (#113) 2021-11-09 11:01:42 +01:00
Georgios Komninos b7c0990dcb
Abstracts database storage & Status page UI (#88) 2021-08-28 15:10:30 +02:00
Georgios Komninos 1711530dda
Fixes security issue & Adds support to sent configuration via email (#83) 2021-08-08 19:55:59 +02:00
Gerwim 2fa4ca32ab
Updated README (#80) 2021-08-05 19:46:11 +02:00
Jaryl Chng d82da2fb35
added instructions for openrc inotifyd config watching on alpine to README.md (#27) 2020-09-13 21:39:18 +02:00
Khanh Ngo 20ab6fc87e
Update README.md 2020-05-21 23:33:46 +07:00