aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-03-24 17:11:05 +0100
committerAlex Auvolat <alex@adnab.me>2023-03-24 17:11:05 +0100
commit7912b73f866690b231d1eae8caf6374497b20a44 (patch)
tree5b0d0eb63a3e9e8cecffb2d6b857bfab0953b68d
parent86f7198cb4ef6d9076e89bfc6c7f4c7f5cc9f8ee (diff)
downloadwgautomesh-7912b73f866690b231d1eae8caf6374497b20a44.tar.gz
wgautomesh-7912b73f866690b231d1eae8caf6374497b20a44.zip
add sample config file
-rw-r--r--README.md35
1 files changed, 35 insertions, 0 deletions
diff --git a/README.md b/README.md
index e8628c3..f9b5613 100644
--- a/README.md
+++ b/README.md
@@ -26,3 +26,38 @@ it does not provide facilities for dynamically adding more peers like many wireg
`wgautomesh` was built for Deuxfleurs to integrate with our automated NixOS-based configuration management system.
A preliminary NixOS module for `wgautomesh` can be found [here](https://git.deuxfleurs.fr/Deuxfleurs/nixcfg/src/branch/wgautomesh/nix/wgautomesh.nix)
+
+### Sample configuration file
+
+```toml
+interface = "wg0"
+gossip_port = 1666
+lan_discovery = true
+gossip_secret_file = "/var/lib/wgautomesh/gossip_secret"
+persist_file = "/var/lib/wgautomesh/state"
+upnp_forward_external_port = 33723
+
+[[peers]]
+pubkey = "7Nm7pMmyS7Nts1MB+loyD8u84ODxHPTkDu+uqQR6yDk="
+address = "10.14.1.2"
+endpoint = "77.207.15.215:33722"
+
+[[peers]]
+pubkey = "lABn/axzD1jkFulX8c+K3B3CbKXORlIMDDoe8sQVxhs="
+address = "10.14.1.3"
+endpoint = "77.207.15.215:33723"
+
+[[peers]]
+pubkey = "XLOYoMXF+PO4jcgfSVAk+thh4VmWx0wzWnb0xs08G1s="
+address = "10.14.4.1"
+endpoint = "bitfrost.fiber.shirokumo.net:33734"
+
+[[peers]]
+pubkey = "smBQYUS60JDkNoqkTT7TgbpqFiM43005fcrT6472llI="
+address = "10.14.2.33"
+endpoint = "82.64.238.84:33733"
+
+[[peers]]
+pubkey = "m9rLf+233X1VColmeVrM/xfDGro5W6Gk5N0zqcf32WY="
+address = "10.14.3.1"
+```