Go to file
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
.github/workflows Support ARM build (#14) 2020-05-22 13:49:13 +07:00
custom/js Edit wireguard client (#19) 2020-06-02 11:20:50 +07:00
db Add empty db directory in vcs 2020-04-23 23:47:19 +07:00
handler Edit wireguard client (#19) 2020-06-02 11:20:50 +07:00
model Add preshared key in wireguard config (#15) 2020-05-28 09:25:21 +07:00
router Show app version on the UI 2020-06-01 15:24:11 +07:00
templates Edit wireguard client (#19) 2020-06-02 11:20:50 +07:00
util Edit wireguard client (#19) 2020-06-02 11:20:50 +07:00
.dockerignore Single binary build (#10) 2020-05-21 15:51:24 +07:00
.gitignore Single binary build (#10) 2020-05-21 15:51:24 +07:00
Dockerfile Edit wireguard client (#19) 2020-06-02 11:20:50 +07:00
LICENSE Create LICENSE 2020-04-25 11:07:12 +07:00
README.md Update README.md 2020-05-21 23:33:46 +07:00
docker-compose.yaml Revert changes in docker-compose file 2020-05-21 15:56:13 +07:00
go.mod Single binary build (#10) 2020-05-21 15:51:24 +07:00
go.sum Single binary build (#10) 2020-05-21 15:51:24 +07:00
main.go Edit wireguard client (#19) 2020-06-02 11:20:50 +07:00
package.json Add docker build 2020-04-25 00:33:22 +07:00
prepare_assets.sh Edit wireguard client (#19) 2020-06-02 11:20:50 +07:00
yarn.lock Add docker build 2020-04-25 00:33:22 +07:00

README.md

wireguard-ui

A web user interface to manage your WireGuard setup.

Features

  • Friendly UI
  • Authentication
  • Manage extra client's information (name, email, etc)
  • Retrieve configs using QR code / file

Run WireGuard-UI

Default username and password are admin.

Using docker compose

You can take a look at this example of docker-compose.yml. Please adjust volume mount points to work with your setup. Then run it like below:

docker-compose up

Using binary file

Download the binary file from the release and run it with command:

./wireguard-ui

Auto restart WireGuard daemon

WireGuard-UI only takes care of configuration generation. You can use systemd to watch for the changes and restart the service. Following is an example:

Create /etc/systemd/system/wgui.service

[Unit]
Description=Restart WireGuard
After=network.target

[Service]
Type=oneshot
ExecStart=/usr/bin/systemctl restart wg-quick@wg0.service

Create /etc/systemd/system/wgui.path

[Unit]
Description=Watch /etc/wireguard/wg0.conf for changes

[Path]
PathModified=/etc/wireguard/wg0.conf

[Install]
WantedBy=multi-user.target

Apply it

systemctl enable wgui.{path,service}
systemctl start wgui.{path,service}

Build

Build docker image

Go to the project root directory and run the following command:

docker build -t wireguard-ui .

Build binary file

Prepare the assets directory

./prepare_assets.sh

Then you can embed resources by generating Go source code

rice embed-go
go build -o wireguard-ui

Or, append resources to executable as zip file

go build -o wireguard-ui
rice append --exec wireguard-ui

Screenshot

wireguard-ui

License

MIT. See LICENSE.

Support

If you like the project and want to support it, you can buy me a coffee

Buy Me A Coffee