Commit Graph
37 Commits
Author SHA1 Message Date
DaanSelendependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>neolegshishovunixroLEE Kai-ZeMikhail SolovevEvgeny VolfertsTheroxenestorms
8d21152947 prepare: version 4.3.5 (#1406)
* Fix: batch IP geolocation requests (limit 100), add deduplication and caching (#1232)

- Added batching of IP addresses into chunks of 100 to comply with ip-api limits
- Implemented deduplication to avoid repeated geolocation requests for identical IPs
- Added in-memory cache to reuse results across batches
- Preserved original order and length of geolocation list in API response
- Improved error handling around external API failures

* fix: addPeers uses OverridePeerSettings for DNS and AllowedIPs fallback (#1310)

* fix: addPeers uses OverridePeerSettings for DNS and AllowedIPs fallback

When adding a peer via the API without explicit DNS or endpoint_allowed_ip
values, the endpoint fell back directly to global wg-dashboard.ini defaults,
ignoring any per-configuration OverridePeerSettings. This caused new peers to
be stored with the wrong DNS and AllowedIPs in the database even when the
configuration had overrides set.

Resolve by fetching the configuration's OverridePeerSettings before the global
defaults. The priority is now: request body → OverridePeerSettings → global
default. The existing config lookup that happened later in the function is
removed as it is now done earlier.

Note: downloadPeer already applied OverridePeerSettings at download time, so
client configs were correct; only the stored peer data was affected.

* fix: addPeers applies OverridePeerSettings for MTU and PersistentKeepalive

Extend the peer-settings priority chain (request body → OverridePeerSettings
→ global default) to MTU and PersistentKeepalive, matching the same pattern
already applied to DNS and EndpointAllowedIPs.

* style: align addPeers OverridePeerSettings fallback with project code style

* Fix: backup regex, SQL cleanup, and restore metadata conflict (#1324)

* fix: backup filename regex dot escaping

* fix: delete paired .sql file when removing backup

* fix: restore backup metadata conflict

* Bug fix. Remove redundant break statement in IP allocation loop. (#1294)

* Remove redundant break statement in IP allocation loop.

* Fix: append IP to allowed_ips list instead of overwriting it

* fix: clean up endpoint history tables on rename and delete (#1367)

* Add new AmneziaWG parameters (implemented in 3.0/3.1) (#1363)

* fix: add button type to accountSettingsInputPassword submission button (#1321)

* fix: handle instantiated SQLAlchemy column types (#1400)

* feat(docker): run drop-in scripts from /data/custom-init.d at startup (#1401)

Allows users to install additional packages or apply custom setup
by placing scripts in /data/custom-init.d, executed in alphabetical
order before WGDashboard starts.

* fix: handle existing endpoint history table during AmneziaWG restore (#1368)

* build(deps): bump pydantic from 2.14.1 to 2.14.2 in /src (#1403)

Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.14.1 to 2.14.2.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/v2.14.2/HISTORY.md)
- [Commits](https://github.com/pydantic/pydantic/compare/v2.14.1...v2.14.2)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-version: 2.14.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump @vue/language-server in /src/static/app (#1404)

Bumps [@vue/language-server](https://github.com/vuejs/language-tools/tree/HEAD/packages/language-server) from 3.3.13 to 3.3.14.
- [Release notes](https://github.com/vuejs/language-tools/releases)
- [Changelog](https://github.com/vuejs/language-tools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vuejs/language-tools/commits/v3.3.14/packages/language-server)

---
updated-dependencies:
- dependency-name: "@vue/language-server"
  dependency-version: 3.3.14
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump axios from 1.20.0 to 1.21.0 in /src/static/client (#1405)

Bumps [axios](https://github.com/axios/axios) from 1.20.0 to 1.21.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.20.0...v1.21.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-version: 1.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: neolegshishov <[email protected]>
Co-authored-by: unixro <[email protected]>
Co-authored-by: LEE Kai-Ze <[email protected]>
Co-authored-by: Mikhail Solovev <[email protected]>
Co-authored-by: Evgeny Volferts <[email protected]>
Co-authored-by: Theroxenes <[email protected]>
Co-authored-by: torms <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-02 22:09:06 +01:00
Ivan Prokudin f53da6eacb Updated resolvconf call in entrypoint.sh to fix dns inside container (#1081)
* removed resolvconf call from entrypoint.sh to fix dns inside container

* Revert "removed resolvconf call from entrypoint.sh to fix dns inside container"

This reverts commit 428908ff84.

* Added resolvconf -a to save initial DNS configuration
2026-04-02 16:27:57 +08:00
daanselen f58226e398 chore: add the option for docker to not be dominant 2026-03-16 19:02:51 +01:00
DaanSelen e71179a2d4 fix: error on startup regarding oidc config file being weird 2026-02-23 16:35:27 +01:00
daanselen bb18c55003 fix: Configuration creation bug due to failed Nonetype checking 2026-02-16 18:54:10 +01:00
daanselen 07534b6f66 fix: 1116 2026-02-06 19:00:02 +01:00
DaanSelen 654bf6d779 chore: replace old values 2026-01-29 13:25:09 +01:00
DaanSelen fb66fd2dda feat: add support for database configuration 2026-01-29 13:23:42 +01:00
DaanSelen cb0619036f chore: add oidc-providers json file to the data volume location 2026-01-09 16:09:23 +01:00
DaanSelen dd6ffa694f chore: fallback echo defined nameserver
Update DNS configuration handling in entrypoint script.
2026-01-03 01:20:02 +01:00
5486b3aaf6 fix: Docker autostart issue due to invalid resolvectl (#1053)
* Update funding information in FUNDING.yml

* Update README.md

* refac: refactor the logic with which the Docker container links its files to the volume

* fix: 1032 docker autostart issue

---------

Co-authored-by: Donald Zou <[email protected]>
Co-authored-by: DaanSelen <[email protected]>
2025-12-30 19:19:20 +01:00
daanselen 306e17eb4d refac: some exit logic 2025-12-14 20:56:18 +01:00
DaanSelen d75c7ad418 feat: add better docker stopping response (#1025) 2025-12-14 17:32:46 +01:00
Donald Zou 6fe257fa4a Update entrypoint.sh 2025-12-13 16:29:48 +08:00
DaanSelen f00940b73c chore: cleanup 2025-12-12 15:27:04 +01:00
DaanSelen cb9cb4a0b6 chore: fix docker (hopefully) 2025-12-12 15:17:25 +01:00
daanselen 6fee7da633 chore: fix bcrypt issue 2025-12-10 23:17:45 +01:00
DaanSelenandDaanSelen 36390a4d71 refac: rework tailing of logs in the Docker entrypoint (#1021)
* chore: add debug workflow

* chore: testing fix

* chore: try next option

* refac: tailing logs

---------

Co-authored-by: DaanSelen <[email protected]>
2025-12-09 13:16:18 +01:00
DaanSelen 9af2983a7b chore: absolute paths and robuust checking 2025-12-08 14:51:28 +01:00
DaanSelenandDaanSelen bfc3e285db refac: speed up the docker container by removing unneeded steps (#985)
* refac: speed up the docker container by removing unneeded steps

* fix: revert compose tag

---------

Co-authored-by: DaanSelen <[email protected]>
2025-11-06 09:31:57 +01:00
daanselen 0d814ec03c refac: new logic to detecting a Wireguard interface 2025-09-21 21:57:28 +02:00
Daan Selen 73a969a6bf feat: slight refactors to improve logic 2025-09-15 13:20:17 +02:00
AdamsandDaanSelen b2f306789c Docker entrypoint refactoring (#743)
* Add new env vars for docker

* Add email env vars for docker

* Improve sed for email vars

* Refactor entrypoint.sh file

* Add additional account docker vars

* Add comment for clear command

---------

Co-authored-by: DaanSelen <[email protected]>
2025-09-15 12:09:14 +02:00
daanselen 8ebd65cc0b feat(docker): prepare for version 4.3 2025-09-10 20:52:47 +02:00
daanselen 4926ee5117 Fix https://github.com/donaldzou/WGDashboard/issues/723 and more 2025-05-02 10:02:38 +02:00
daanselen 6cf96de0b4 Moved Docker file around, cleaning. 2025-04-22 21:20:41 +02:00
Noxcis 8378030c70 Fixed Docker Vulnerability
+ Switched Base Image to Alpine
+ Simplified Docker Build
+ Added Alpine support to wgd.sh script.
+ Maintained Project Layout.
2024-08-22 23:15:39 -05:00
daanselen 20530c000e Added container documentation, and added a few new comments. 2024-06-09 23:11:22 +02:00
Daan 8824786fb4 For some reason, cloning the GitHub (which has been simplified) works from the Dockerfile directly.
But the wg0.conf file needs a re-copy on run-time. Working now.

Made code modifications and optimizations.

Please report bugs to me.
2024-06-08 13:30:24 +02:00
Daan cf455fc19b Modified code so that the docker logging makes sense. Also fixed a bug which can happen with iptables (-s illegal option). Pushing to repo. 2024-06-07 13:25:46 +02:00
Daan 1bcddadb7a Features tested working, feeling good about a release. 2024-06-06 16:11:49 +02:00
Daan 6dc28f11e0 Working on isolated peers feature. 2024-06-06 00:12:11 +02:00
Daan 8ad601fcc0 Added features, plus explanations in about them in the compose.yaml file. Looking great! 2024-06-05 20:27:24 +02:00
Daan f400844a3d Modified scripts 2024-06-05 09:16:29 +02:00
Daan 560096878f Persistency seems to work with this model, it has succeeded my tests. 2024-06-04 23:26:03 +02:00
Daan 0938f5ab71 Container deployed with working VPN server built-in. Missing is persistency among recreations, looking into that... 2024-06-04 22:49:17 +02:00
Daan 06193d27c0 Added dockerfile and entrypoint for basic compilation, moving to finalizing 2024-06-04 17:05:17 +02:00