mirror of
https://github.com/pcvolkmer/docker-wireguard-boringtun.git
synced 2025-07-02 07:32:53 +00:00
Added script to add new clients
This commit is contained in:
18
README.md
18
README.md
@ -48,10 +48,6 @@ wg_1 | - Generating 5 client configs and client QR codes
|
||||
wireguard_wg_1 exited with code 0
|
||||
```
|
||||
|
||||
### Remove old and create new config files
|
||||
|
||||
Remove existing config files or rename device in `docker-compose.yml`. Run command `docker-compose up` again.
|
||||
|
||||
### Run the service
|
||||
|
||||
Start the service in detached mode.
|
||||
@ -60,6 +56,20 @@ Start the service in detached mode.
|
||||
$ docker-compose up -d
|
||||
```
|
||||
|
||||
### Add new client
|
||||
|
||||
Stop the service and run
|
||||
|
||||
```
|
||||
$ docker-compose run wg add-client
|
||||
```
|
||||
|
||||
This will create new client configuration and adds peer configuration to server config file.
|
||||
|
||||
### Remove configuration and create new one from scratch
|
||||
|
||||
Remove existing config files or rename device in `docker-compose.yml`. Run command `docker-compose up` again.
|
||||
|
||||
## Client configurations
|
||||
|
||||
You will find client configuration files for each client as config file and PNG file containing a QR code with
|
||||
|
Reference in New Issue
Block a user