Commit Graph

504 Commits

Author SHA1 Message Date
Philip H 6fe197f4fd
import & export configuration (#1161)
* feat: load configuration from file

* import json config file & update the config (restore)
* export the config and save it to json file (backup)

* fix: reload configuration

* run linter
* screenshot update

* feat: support more langs

* add translations for French, Spanish, and Italian
* change the wording for better understanding of this feature:
    - "import" to "restore"
    - "export" to "backup"
* rename functions to reflect these changes

* i18n.js: german translation

---------

Co-authored-by: Philip H <47042125+pheiduck@users.noreply.github.com>
2024-07-10 12:37:28 +02:00
Philip H e4a7ff08c6
i18n.js: german translation 2024-07-10 12:34:11 +02:00
tetuaoro 43b193b76d feat: support more langs
* add translations for French, Spanish, and Italian
* change the wording for better understanding of this feature:
    - "import" to "restore"
    - "export" to "backup"
* rename functions to reflect these changes
2024-07-10 12:06:25 +02:00
tetuaoro 4deca34faf fix: reload configuration
* run linter
* screenshot update
2024-07-09 19:49:40 +02:00
tetuaoro 72ba79b5f2 feat: load configuration from file
* import json config file & update the config (restore)
* export the config and save it to json file (backup)
2024-07-09 17:06:19 +02:00
NPM Update Bot 94d87681c3 npm: package updates 2024-07-09 15:01:53 +00:00
NPM Update Bot c73c6c7291 npm: package updates 2024-07-08 08:42:56 +00:00
NPM Update Bot 6a588ee3fa npm: package updates 2024-07-07 17:13:42 +00:00
EdwardWu 11f5122c39
translations: Update Traditional Chinese translations
* Update strings closer than Taiwanese used.

Signed-off-by: EdwardWu <bluehome.wu@gmail.com>
2024-07-04 10:47:18 +08:00
NPM Update Bot ee117ddb91 npm: package updates 2024-07-01 00:03:23 +00:00
NPM Update Bot d3e8e627e9 npm: package updates 2024-06-28 10:37:56 +00:00
NPM Update Bot 436ccac824 npm: package updates 2024-06-27 18:34:47 +00:00
NPM Update Bot 34c28805c4 npm: package updates 2024-06-24 00:04:04 +00:00
NPM Update Bot 2f956248db npm: package updates 2024-06-20 09:46:37 +00:00
Robert Heim 34ae8e42f3 fix: lint errors 2024-06-18 22:30:55 +02:00
Robert Heim eaa4b1ebaa feat: introduce PASSWORD_HASH and deprecate PASSWORD 2024-06-18 20:17:00 +02:00
NPM Update Bot 7d0e2729b6 npm: package updates 2024-06-16 14:14:58 +00:00
Philip H b5372f0dbc
bring password hash back
users want to have this instead cleartext password. Mitigates security issues.
2024-06-16 16:14:19 +02:00
NPM Update Bot 390b72c94a npm: package updates 2024-06-10 00:03:26 +00:00
adrien a082a40bf6 config: Add support for custom client port configuration
This commit introduces the ability to specify a custom port for the client
configuration. This feature is particularly useful when the WireGuard server
is behind a port forwarding setup, allowing clients to connect using the
correct port number.

With this change, users can now define the desired client port in the
configuration file, ensuring seamless connectivity even in scenarios where
the client's listening port differs from the standard WireGuard port.
2024-06-07 12:53:54 +02:00
Max e6d2d95340
fix typo in Server.js 2024-06-06 23:01:39 +02:00
NPM Update Bot 1370141f03 npm: package updates 2024-06-06 15:21:02 +00:00
NPM Update Bot b60f0e9668 npm: package updates 2024-06-02 13:20:07 +00:00
NPM Update Bot 44417d3db6 npm: package updates 2024-05-30 11:48:00 +00:00
Philip H e5e63c43e6
package.json: fixup license identifier 2024-05-30 13:47:24 +02:00
NPM Update Bot f06b7e00aa npm: package updates 2024-05-30 07:31:06 +00:00
Philip H 332039de56
cdnjs: apexcharts.min.js 3.49.1 2024-05-30 09:24:58 +02:00
davide-acanfora d2d15fca2a Path traversal vulnerability resolved 2024-05-27 20:25:00 +02:00
davide-acanfora c26b536b65 Remove unnecessary bcryptjs module usage 2024-05-27 20:25:00 +02:00
davide-acanfora 859dd2f25b Replace uuid module with built in crypto for UUIDv4 generation 2024-05-27 20:25:00 +02:00
davide-acanfora e80ff54ebc Don't print release number to anyone who visits the service 2024-05-27 20:25:00 +02:00
NPM Update Bot 4bfef3c0c0 npm: package updates 2024-05-27 00:03:06 +00:00
NPM Update Bot 93d9f0b6fe npm: package updates 2024-05-24 19:35:49 +00:00
NPM Update Bot 678cf5bffb npm: package updates 2024-05-23 07:46:21 +00:00
taohua 8df1b6ff54 Update config.js
should respect WG_PORT, not hard code 51820.
2024-05-18 14:13:03 +02:00
NPM Update Bot 3844d04569 npm: package updates 2024-05-16 20:19:22 +02:00
Philip H 68c6f6252e fixup: Server.js for instance without docker
Some users can no longer access the Web UI since the release of v13.
2024-05-16 20:19:22 +02:00
NPM Update Bot c6dd456a07 npm: package updates 2024-05-13 00:03:03 +00:00
NPM Update Bot a43d2201fc npm: package updates 2024-05-09 18:01:15 +00:00
NPM Update Bot 191dd74b0c npm: package updates 2024-05-09 15:29:08 +00:00
Philip H e2eb7bc362
avoid warnings on ci
as we support nodejs latest lts version on instance without docker
2024-05-09 17:28:28 +02:00
NPM Update Bot b60461e917 npm: package updates 2024-05-09 11:21:47 +00:00
NPM Update Bot 195e307ff5 npm: package updates 2024-05-04 19:00:17 +00:00
Philip H e46efd6088
package.json: rollback nodejs 18
because of build hang on newer nodejs version stick to nodejs 18
2024-05-04 20:59:36 +02:00
NPM Update Bot 66bb13ed30 npm: package updates 2024-05-04 13:19:02 +00:00
NPM Update Bot 9b5b8c77c3 npm: package updates 2024-04-30 17:53:00 +00:00
davide-acanfora 6b2f57f2f1 Added nodemon as a dev dependency and removed unnecessary instructions from the Dockerfile 2024-04-30 17:03:48 +02:00
davide-acanfora 488e3c32b3 Fix typo in code comments 2024-04-30 17:00:53 +02:00
NPM Update Bot 4cc07c5312 npm: package updates 2024-04-29 00:03:04 +00:00
NPM Update Bot 4911082a34 npm: package updates 2024-04-27 16:19:23 +00:00
NPM Update Bot 1e2da39a87 npm: package updates 2024-04-20 16:06:25 +00:00
pheiduck 3032163814 bump to node 20 2024-04-19 17:12:07 +02:00
Philip H 187888e078 WireGuard.js: fixup ListenPort 2024-04-14 19:51:04 +02:00
Philip H c2482f494a
[combine] gitignore
Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
2024-04-14 19:16:41 +02:00
Philip H 2a3acdcad5
Merge branch 'master' into revert-888-feat-cidr-notation 2024-04-06 15:17:43 +02:00
Philip H 9e925c2ebb
[prepare] version bump to 13 and updated changelog
Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
2024-04-05 18:59:41 +02:00
Rubén León 4868f32f1e i18n.js: complete words in Spanish 2024-04-01 23:16:57 +02:00
NPM Update Bot 074b3548d2 npm: package updates 2024-03-31 17:37:34 +00:00
Utkarsh Goel 4981b72d00
fix unambiguous boolean operators 2024-03-27 22:23:37 +08:00
Utkarsh Goel 33634211a9
check for empty WG_DEFAULT_ADDRESS 2024-03-27 22:19:27 +08:00
Philip H bf214fb4d3
Revert "feat: cidr notation" 2024-03-27 14:41:31 +01:00
Utkarsh Goel dbbfdd5357
Add backward compatibility for WG_DEFAULT_ADDRESS 2024-03-27 21:27:43 +08:00
NPM Update Bot cb63d5c67f npm: package updates 2024-03-26 16:40:32 +00:00
Utkarsh Goel 5cdacd6cc3
Fix CIDR block calculation issue, fix POST_DOWN config 2024-03-25 23:28:36 +08:00
Philip H. fe7d77e481
fixup: packages 2024-03-23 20:34:43 +00:00
Philip H 6c0049770e
Merge branch 'master' into feat-cidr-notation 2024-03-23 21:30:52 +01:00
cany748 8d00c5456a fix: add Content-Type header for static files 2024-03-23 19:37:33 +01:00
NPM Update Bot c2829d79e0 npm: package updates 2024-03-23 18:36:33 +00:00
NPM Update Bot 5afb701013 npm: package updates 2024-03-21 10:42:32 +00:00
NPM Update Bot 62703ffbd6 npm: package updates 2024-03-20 12:38:50 +00:00
Philip H 19589e7ee7
refactor!: migrate from express to h3 (#914) 2024-03-20 13:38:14 +01:00
NPM Update Bot d40536c3fb npm: package updates 2024-03-19 21:10:54 +00:00
Philip H f979d23704
Add Chart and Auto/Light/Dark mode toggles (#925)
A banging contribution from @suxscribe. Many thanks!
2024-03-19 22:10:22 +01:00
suxscribe 1c98e466c6
Merge branch 'feat-stats' into feat-toggles 2024-03-19 18:34:41 +03:00
Philip H 953a67bbdd
fixup: Server.js 2024-03-19 14:18:29 +01:00
Philip H 5fbfb26937
fixup: Server.js 2024-03-19 14:16:44 +01:00
Philip H 74f3e2f320
fixup: Server.js 2024-03-19 14:11:03 +01:00
Philip H c107920df2
Merge branch 'master' into feat-h3 2024-03-19 14:09:42 +01:00
NPM Update Bot e666a14612 npm: package updates 2024-03-19 12:54:01 +00:00
Sergei Birukov ac6a05f9be Fix lint errors 2024-03-18 21:25:08 +01:00
Sergei Birukov 262318df27 Disable debug 2024-03-18 21:25:08 +01:00
Sergei Birukov 98a5daf458 Fix charts on mobile 2024-03-18 21:25:08 +01:00
Sergei Birukov 71c208133d Remove .env from repo 2024-03-18 21:25:08 +01:00
Sergei Birukov aedb691b2b Fix traffic charts. Add chart vars
Add UI_TRAFFIC_STATS, UI_CHART_TYPE
2024-03-18 21:25:08 +01:00
Sergei Birukov 81ccf8762d Header mobile layout 2024-03-18 10:05:12 +03:00
NPM Update Bot 90431ff9c5 npm: package updates 2024-03-18 00:03:46 +00:00
Sergei Birukov 32fc78589a Lint 2024-03-17 20:38:21 +03:00
Sergei Birukov f3a8ff6490 Add dark/light mode toggle. Add chart toggle
Change dark/light mode detection
Add saving uiShowCharts to local storage
Add saving uiTheme to local storage
Add ui buttons
2024-03-17 20:38:21 +03:00
Philip H f7bd362538
fixup: Server.js 2024-03-15 15:23:12 +01:00
Philip H 44cc5683d4
Merge branch 'master' into feat-h3 2024-03-15 15:22:17 +01:00
Sergei Birukov 12b72cf389 Fix lint errors 2024-03-15 15:20:35 +01:00
Sergei Birukov ccde2fdfd3 Disable debug 2024-03-15 15:20:35 +01:00
Sergei Birukov 166a58a685 Fix charts on mobile 2024-03-15 15:20:35 +01:00
Sergei Birukov 73242c61c3 Remove .env from repo 2024-03-15 15:20:35 +01:00
Sergei Birukov 3d11730926 Fix traffic charts. Add chart vars
Add UI_TRAFFIC_STATS, UI_CHART_TYPE
2024-03-15 15:20:35 +01:00
NPM Update Bot e2242daef1 npm: package updates 2024-03-15 14:18:17 +00:00
Philip H ee5a2c6c5a
Server.js: remove cookie setting
Proxy is recommended else use only internally
2024-03-15 15:17:41 +01:00
Philip H 68187e07a1
Merge branch 'master' into feat-cidr-notation 2024-03-14 13:49:26 +01:00
Philip H. 7596385d5a
fixup: lint errors and uninstall express 2024-03-14 12:18:47 +00:00
Philip H. 10f246ea59
fixup: Server.js 2024-03-14 08:19:29 +00:00