add PersistentKeepalive config to server-side Peer config
This commit is contained in:
		
							parent
							
								
									45849a2aee
								
							
						
					
					
						commit
						bf151066da
					
				
							
								
								
									
										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 | ||||
| ``` | ||||
|  |  | |||
|  | @ -22,7 +22,8 @@ Table = {{ .globalSettings.Table }} | |||
| # Update at:    {{ .Client.UpdatedAt }} | ||||
| [Peer] | ||||
| PublicKey = {{ .Client.PublicKey }} | ||||
| {{if .Client.PresharedKey }}PresharedKey = {{ .Client.PresharedKey }}{{end}} | ||||
| {{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 .Client.Endpoint }}Endpoint = {{ .Client.Endpoint }}{{end}} | ||||
| {{if $.globalSettings.PersistentKeepalive}}PersistentKeepalive = {{ $.globalSettings.PersistentKeepalive }}{{end}} | ||||
| {{if .Client.Endpoint}}Endpoint = {{ .Client.Endpoint }}{{end}} | ||||
| {{end}}{{end}} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue