Commit graph

64 commits

Author SHA1 Message Date
Paul Dee d32064dd0e
Fix login redirect problems. (#270)
After login, my browser gets a 404 for `/wireguard`. `wireguard` might
not be explicitly set by `BASE_PATH`, so just use the `{{.basePath}}`
instead.

Fixes #259.
2022-12-13 21:29:07 +01:00
itsvit-vlasov-y a80741e748
Added checkbox FwMark in QRCode generation (#260) 2022-12-02 23:40:29 +01:00
Weegley 033bea6fb1
Update global_settings.html (#243) 2022-12-02 23:08:54 +01:00
Weegley c8189bb969
Update base.html (#242) 2022-12-02 23:08:07 +01:00
ned3y2k 887bc778df
Fixed the problem that Wake On Lan does not work when BASE_PATH is set. (#229)
Fix time display issue in iOS WebKit.
2022-09-30 10:39:12 +02:00
Marcus Wichelmann 29b017f277
Add MTU to client configs (#214) 2022-09-30 10:22:14 +02:00
Constantin ec7db055c8
improve status UI (#196) 2022-07-14 08:39:33 +02:00
Marcus Wichelmann 031d2cb7e8
Mitigate CSRF attacks (#206) 2022-07-14 08:36:47 +02:00
Khanh Ngo 6bc9a5fd87
fix the homepage href 2022-04-26 20:36:39 +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
Khanh Ngo 90bb2851bf
Update help widget 2022-04-24 10:21:16 +02:00
fr123k a5fdb1ad1d
Add ForwardMark to global settings (#173) 2022-04-24 09:44:33 +02:00
Khanh Ngo ad4ca4d9bb
UI adjustment (#172)
- Adjust the UI
- Add more docs using tooltips
2022-03-20 13:53:09 +01:00
ned3y2k 0224e1f137
Implements Wake On Lan and management features (#164) 2022-03-20 10:03:27 +01:00
Maxim Kochurov 037a6c56d3
Implement Optional Private Keys (#161) 2022-03-13 17:33:37 +01: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
Luke Lambert da99259f55
QR code behind button and faster modal loading (#144) 2022-01-29 08:53:56 +01:00
brittondodd 341f9b6a42
Allow passing extra allowed subnets (#114) 2022-01-29 08:45:00 +01:00
Max Pedraza 1da9b8418e
I've modify the place where I inserted code to minimize the number of files touched. (#131) 2021-12-04 09:03:56 +01:00
Khanh Ngo e74a3a808f
Dynamic year in footer page (#126) 2021-11-21 21:55:43 +01:00
Khanh Ngo 2d9eeb08e8
Make MTU and PersistentKeepalive optional (#123) 2021-11-20 21:02:23 +01:00
Khanh Ngo 3c1d894b44
Make client email input optional (#122) 2021-11-20 16:08:24 +01:00
Giannis Mathioudakis d1507726a4
Fix form submit, preventing login. (#118) 2021-11-12 21:12:17 +01:00
Yumin Wu 4829dd3cfd
fix:Convenient to use the enter key on the keyboard (#116) 2021-11-12 13:39:50 +01:00
Daniel Scrivano cb6dd3cef1
fix typo (#104) 2021-11-06 13:15:24 +01:00
Khanh Ngo 630d62f3eb
Fix missing bottom_js from base template 2021-08-28 15:58:23 +02:00
Georgios Komninos b7c0990dcb
Abstracts database storage & Status page UI (#88) 2021-08-28 15:10:30 +02:00
n4v41 7bb80c0c2e
fix issue when updating clients and send mail (#92) 2021-08-25 07:38:04 +02:00
Georgios Komninos 1711530dda
Fixes security issue & Adds support to sent configuration via email (#83) 2021-08-08 19:55:59 +02:00
Alan Scherger 854a9fdde9
remove maxchars for copy+paste (#58) 2021-08-05 20:07:42 +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
Khanh Ngo 9dca2b7361
Login disable (#35)
Add ability to disable authentication
2020-10-09 23:33:29 +02:00
Jaryl Chng b0ed08f19d
added Post Up and Post Down configuration to server interface (#28) 2020-09-13 21:47:01 +02:00
Khanh Ngo cd7f6e500a
Edit wireguard client (#19)
* Add the ability to modify an existing client
* Update client page using Ajax
2020-06-02 11:20:50 +07:00
Khanh Ngo 9169e75e88
Show app version on the UI 2020-06-01 15:24:11 +07:00
Khanh Ngo 04174594b9
Reload the client page after adding new client (#17) 2020-05-29 14:22:29 +07:00
Khanh Ngo 6589b41cc1
Reformat HTML code 2020-05-29 11:27:23 +07:00
Khanh Ngo 680e73c990
Use const instead of var for js variables 2020-05-29 10:47:55 +07:00
Khanh Ngo 9617425033
Add preshared key in wireguard config (#15) 2020-05-28 09:25:21 +07:00
Khanh Ngo 91f06914d4
Add download button 2020-04-25 16:58:14 +07:00
Khanh Ngo b12feb08bd
Add docker build 2020-04-25 00:33:22 +07:00
Khanh Ngo a5fbb7b58a
Add authentication 2020-04-24 18:14:54 +07:00
Khanh Ngo a78c9f3dd4
Add login page 2020-04-24 11:22:50 +07:00
Khanh Ngo d017ea17c8
Don't write disabled client to wireguard config file 2020-04-23 23:54:46 +07:00
Khanh Ngo 5e7cfbd01f
Add Global Settings into DB initilization step 2020-04-23 23:40:44 +07:00
Khanh Ngo 7c3cac8084
Add Apply Config button to save wireguard config file 2020-04-23 09:29:44 +07:00
Khanh Ngo ea36311475
Ajustment to update the UI when a client got removed 2020-04-22 21:49:45 +07:00
Khanh Ngo 43012a720c
Adjustment in the CSS to show/hide pause button 2020-04-22 21:39:35 +07:00
Khanh Ngo dbb85cb759
Adjustment to have enable/disable client on UI 2020-04-22 17:11:28 +07:00