mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-04-18 19:49:30 +03:00
add PersistentKeepalive config to server-side Peer config (#515)
This commit is contained in:
parent
45849a2aee
commit
769883f020
2 changed files with 10 additions and 7 deletions
12
README.md
12
README.md
|
@ -8,8 +8,8 @@ A web user interface to manage your WireGuard setup.
|
|||
|
||||
- Friendly UI
|
||||
- Authentication
|
||||
- Manage extra client information (name, email, etc)
|
||||
- Retrieve client config using QR code / file / email
|
||||
- Manage extra client information (name, email, etc.)
|
||||
- Retrieve client config using QR code / file / email / Telegram
|
||||
|
||||

|
||||
|
||||
|
@ -195,8 +195,7 @@ Set `WGUI_MANAGE_RESTART=true` to manage Wireguard interface restarts.
|
|||
Using `WGUI_MANAGE_START=true` can also replace the function of `wg-quick@wg0` service, to start Wireguard at boot, by
|
||||
running the container with `restart: unless-stopped`. These settings can also pick up changes to Wireguard Config File
|
||||
Path, after restarting the container. Please make sure you have `--cap-add=NET_ADMIN` in your container config to make
|
||||
this
|
||||
feature work.
|
||||
this feature work.
|
||||
|
||||
## Build
|
||||
|
||||
|
@ -214,7 +213,9 @@ or
|
|||
docker compose build --build-arg=GIT_COMMIT=$(git rev-parse --short HEAD)
|
||||
```
|
||||
|
||||
:information_source: A container image is avaialble on [Docker Hub](https://hub.docker.com/r/ngoduykhanh/wireguard-ui) which you can pull and use
|
||||
:information_source: A container image is available on [Docker Hub](https://hub.docker.com/r/ngoduykhanh/wireguard-ui)
|
||||
which you can pull and use
|
||||
|
||||
```
|
||||
docker pull ngoduykhanh/wireguard-ui
|
||||
````
|
||||
|
@ -228,6 +229,7 @@ Prepare the assets directory
|
|||
```
|
||||
|
||||
Then build your executable
|
||||
|
||||
```sh
|
||||
go build -o wireguard-ui
|
||||
```
|
||||
|
|
|
@ -24,5 +24,6 @@ Table = {{ .globalSettings.Table }}
|
|||
PublicKey = {{ .Client.PublicKey }}
|
||||
{{if .Client.PresharedKey}}PresharedKey = {{ .Client.PresharedKey }}{{end}}
|
||||
AllowedIPs = {{$first :=true}}{{range .Client.AllocatedIPs }}{{if $first}}{{$first = false}}{{else}},{{end}}{{.}}{{end}}{{range .Client.ExtraAllowedIPs }},{{.}}{{end}}
|
||||
{{if $.globalSettings.PersistentKeepalive}}PersistentKeepalive = {{ $.globalSettings.PersistentKeepalive }}{{end}}
|
||||
{{if .Client.Endpoint}}Endpoint = {{ .Client.Endpoint }}{{end}}
|
||||
{{end}}{{end}}
|
||||
|
|
Loading…
Add table
Reference in a new issue