Commit Graph

69 Commits

Author SHA1 Message Date
Ioannis Dressos 06b3df4586
Add configurable config file permissions (default 0600)
The generated WireGuard config contains the server private key and client
preshared keys, so it is now written with mode 0600 by default instead of
inheriting a umask-dependent (often world-readable) mode. The mode is
configurable via the global settings UI or WGUI_CONFIG_FILE_MODE. The file is
still written in place so the container inotify restart watch keeps working.
2026-07-08 12:32:24 +03:00
Ioannis Dressos 283ba7155d
Use crypto/rand for default session secret generation 2026-07-08 12:15:29 +03:00
Ioannis Dressos b517ae0feb
Add GeoLite2 geolocation integration 2026-07-07 18:49:39 +03:00
Ioannis Dressos 50816d995d
Capitalize 'g' in Wireguard 2026-07-07 15:19:51 +03:00
Ioannis Dressos 5b88f8f566
Additional configuration env variables
WGUI_BRAND_TEXT - The brand text of the web application
WGUI_ACCENT_COLOR - The color of the interface sidebar
WGUI_LOGO_FILE_PATH - The file path of the website logo
WGUI_PAGE_TITLE_PREFIX - The HTML title prefix for all pages
2026-07-07 14:16:26 +03:00
0xCA ecea82d172
Support for notes about clients (#527) 2024-01-09 21:03:27 +01:00
0xCA fa33d3f66e
Session improvements (#510) 2024-01-06 09:11:20 +01:00
Khanh Ngo b3c22aa81f
Add golangci-lint CI (#516) 2023-12-31 21:46:30 +01:00
Khanh Ngo 45849a2aee
chore: code adjustment (#512) 2023-12-29 10:56:37 +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 a8e96f5457
Correct flag to helo and make shorter 2023-12-27 14:42:31 -07:00
0xCA a9be53899c
Subnet range selector, interface fixes (#481) 2023-12-27 09:08:55 +01:00
Cameron 585b55c2ee
fix: handle os.chmod errors (#457) 2023-12-25 20:17:31 +01:00
Cameron 3024d36d76
env variable file support (#391) 2023-12-25 19:58:31 +01:00
Alexandra Stone d2b67277e3
Add hello hostname to config 2023-10-27 11:32:26 -06:00
Khanh Ngo b55543f424
fix: set random session secret if not set (#417) 2023-08-11 11:48:51 +02:00
andycandy-de e9357d83e2
Added Table to global settings (#308) 2023-05-24 12:06:05 +02:00
Khanh Ngo 5e0217db04
Set password type field 2023-03-16 16:25:38 +01:00
ByteDream 4fc52b62d2
Replace go.rice with native go embedding (#331) 2023-03-16 08:40:04 +01:00
Khanh Ngo e3e3639443 Bracket fixes 2023-03-15 21:50:46 +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 b80c44af43
Fix for fwmark (#279) 2023-03-15 21:37:39 +01:00
ByteDream 3d59c7d0de
Add log levels (#332) 2023-03-15 21:29:08 +01:00
Arminas 9f20fe6c09
Show apply config button only when needed (#292) 2023-03-15 21:15:41 +01:00
Arminas 6dd5590940
User management panel (#289) 2023-03-15 21:13:53 +01:00
ByteDream a866977cb0
Add favicon (#288) 2023-02-16 17:09:24 +01:00
Khanh Ngo ea55b36a6f
Update readme and code comments (#272) 2022-12-13 22:44:11 +01:00
itsvit-vlasov-y a80741e748
Added checkbox FwMark in QRCode generation (#260) 2022-12-02 23:40:29 +01:00
Jag_k 63d6e1f391
Add support to SSL/TLS/SSLTLS encryption for SMTP (#221) 2022-09-30 10:26:17 +02: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
Marcus Wichelmann 29b017f277
Add MTU to client configs (#214) 2022-09-30 10:22:14 +02:00
Khanh Ngo f43c59c043
Dont write FwMark if empty (#192) 2022-04-26 21:33:23 +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
fr123k a5fdb1ad1d
Add ForwardMark to global settings (#173) 2022-04-24 09:44:33 +02:00
slch 100c4ee1f4
Custom wg conf template (#179) 2022-04-24 09:42:08 +02:00
Matt3o12 71ede02e1c
PresharedKey is now only included if set (#141)
PresharedKey is now only set in the server and client config if the key
is set and not null (or empty).

I added this feature because I was importing old config files from
clients that did not have a preshared key set. Clients can be created
without preshared keys when editing db/client/ files manually. If the
field is not set, wireguard-ui creates invalid configs by producing:

PresharedKey =

This patch remvoes this behavior and just skips the preshared key if not
set.

Co-authored-by: Khanh Ngo <k@ndk.name>
2022-01-29 09:11:50 +01:00
Tagada af62be378f
SMTP support (#146) 2022-01-29 09:01:37 +01:00
brittondodd 341f9b6a42
Allow passing extra allowed subnets (#114) 2022-01-29 08:45:00 +01:00
Khanh Ngo 2d9eeb08e8
Make MTU and PersistentKeepalive optional (#123) 2021-11-20 21:02:23 +01:00
Luke Lambert abc0f74551
Fix flag to disable login (#119) 2021-11-12 21:17:18 +01:00
dan 59abd1506f
Expand env vars and flags (#84) 2021-08-29 20:26:12 +02:00
Georgios Komninos b7c0990dcb
Abstracts database storage & Status page UI (#88) 2021-08-28 15:10:30 +02:00
Robin Horton acbe5b48e9
consume variables to set username and password otherwise use defaults (#90) 2021-08-24 21:41:52 +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 2aa042b919
Added UseServerDNS option for clients who do not have to use the DNS specified in the server configuration. (#79) 2021-08-05 19:58:01 +02:00
Elijah Pavkin de0c9fd26b
Port forwarding for server (#69) 2021-08-05 19:50:31 +02:00
tituspijean b8142b80c2
Add configurable bind address (#36) 2020-10-10 16:01:35 +02:00
Khanh Ngo 9dca2b7361
Login disable (#35)
Add ability to disable authentication
2020-10-09 23:33:29 +02:00