mirror of
https://github.com/hassio-addons/addon-wireguard.git
synced 2025-05-04 19:01:31 +00:00
📚 Update add-on documentation to use new YAML configuration format
This commit is contained in:
parent
a938c3d928
commit
9f5a8d3842
1 changed files with 23 additions and 36 deletions
59
README.md
59
README.md
|
@ -82,42 +82,29 @@ peers (clients).
|
|||
|
||||
A little more extensive example add-on configuration:
|
||||
|
||||
```json
|
||||
{
|
||||
"log_level": "info",
|
||||
"server": {
|
||||
"host": "myautomatedhome.duckdns.org",
|
||||
"addresses": [
|
||||
"10.10.10.1"
|
||||
],
|
||||
"dns": [
|
||||
"1.1.1.1",
|
||||
"1.0.0.1"
|
||||
]
|
||||
},
|
||||
"peers": [
|
||||
{
|
||||
"name": "frenck",
|
||||
"addresses": [
|
||||
"10.10.10.2"
|
||||
],
|
||||
"allowed_ips": [],
|
||||
"client_allowed_ips": []
|
||||
},
|
||||
{
|
||||
"name": "ninja",
|
||||
"public_key": "QNLXV8lrsPnKOd011DO8g5DWyad6iHJDSVOD6yOqjiE=",
|
||||
"addresses": [
|
||||
"10.10.10.3"
|
||||
],
|
||||
"allowed_ips": [],
|
||||
"client_allowed_ips": [
|
||||
"10.10.10.0/24",
|
||||
"192.168.1.0/24"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
```yaml
|
||||
log_level: info
|
||||
server:
|
||||
host: myautomatedhome.duckdns.org
|
||||
addresses:
|
||||
- 10.10.10.1
|
||||
dns:
|
||||
- 1.1.1.1
|
||||
- 1.0.0.1
|
||||
peers:
|
||||
- name: frenck
|
||||
addresses:
|
||||
- 10.10.10.2
|
||||
allowed_ips: []
|
||||
client_allowed_ips: []
|
||||
- name: ninja
|
||||
public_key: QNLXV8lrsPnKOd011DO8g5DWyad6iHJDSVOD6yOqjiE=
|
||||
addresses:
|
||||
- 10.10.10.3
|
||||
allowed_ips: []
|
||||
client_allowed_ips:
|
||||
- 10.10.10.0/24
|
||||
- 192.168.1.0/24
|
||||
```
|
||||
|
||||
**Note**: _This is just an example, don't copy and paste it! Create your own!_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue