mirror of
https://github.com/hatamiarash7/WireGuard-Config-Generator.git
synced 2025-06-29 05:51:40 +02:00
Update README.md
This commit is contained in:
parent
7c2261239e
commit
b91c0ed751
56
README.md
56
README.md
@ -8,50 +8,36 @@ This simple script will generate tunnel config files for WireGuard.
|
|||||||
|
|
||||||
You need to give two file contains your information:
|
You need to give two file contains your information:
|
||||||
|
|
||||||
- `endpoints.json` : Contains the endpoints you want to connect to ( Name, Address ).
|
- `endpoints.toml` : Contains the endpoints you want to connect to ( Name, Address ).
|
||||||
- `ip-list.json` : Contains the IP addresses you want to use.
|
- `ip-list.toml` : Contains the IP addresses you want to use.
|
||||||
|
|
||||||
And also give private/other information as a `.env` file.
|
And also give private/other information as a `.env` file.
|
||||||
|
|
||||||
### endpoints.json
|
### endpoints.toml
|
||||||
|
|
||||||
```json
|
```toml
|
||||||
[
|
Company-Server-1 = "wg-1.domain.xyz:1234"
|
||||||
{
|
Company-Server-2 = "wg-2.domain.xyz:1234"
|
||||||
"name": "Company-Server-1",
|
|
||||||
"address": "wg-1.domain.xyz:1234"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Company-Server-2",
|
|
||||||
"address": "wg-2.domain.xyz:1234"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### ip-list.json
|
### ip-list.toml
|
||||||
|
|
||||||
```json
|
```toml
|
||||||
{
|
[k8s]
|
||||||
"k8s-cluster": [
|
DC1 = "1.2.3.4/32"
|
||||||
"1.2.3.4/32",
|
DC2 = "5.6.7.8.9/32"
|
||||||
"5.6.7.8.9/32",
|
DC3 = "1.2.3.4/27"
|
||||||
"1.2.3.4/27"
|
|
||||||
],
|
[monitoring]
|
||||||
"grafana": [
|
prometheus = "1.2.3.4/32"
|
||||||
"1.2.3.4/32",
|
grafana = "5.6.7.8.9/32"
|
||||||
"5.6.7.8.9/32",
|
|
||||||
"1.2.3.4/27"
|
[other]
|
||||||
],
|
server1 = "1.2.3.4/32"
|
||||||
"other": [
|
server2 = "5.6.7.8.9/32"
|
||||||
"1.2.3.4/32",
|
server3 = "1.2.3.4/27"
|
||||||
"5.6.7.8.9/32",
|
|
||||||
"1.2.3.4/27"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
> **Note**: Array keys ( `grafana`, `other`, etc ) are not important and can be used to group IP addresses for you to read/edit better.
|
|
||||||
|
|
||||||
### .env
|
### .env
|
||||||
|
|
||||||
```env
|
```env
|
||||||
|
Loading…
x
Reference in New Issue
Block a user