From ba878f31b8e0551d56a9ba09fa2b14069313c937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Cluseau?= Date: Thu, 31 Mar 2022 14:49:29 +0200 Subject: [PATCH] config: vpn def --- config/config.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/config.go b/config/config.go index 3957508..4461380 100644 --- a/config/config.go +++ b/config/config.go @@ -65,6 +65,7 @@ type Config struct { Storage StorageConfig Mounts []MountDef + VPNs []VPNDef Groups []GroupDef Users []UserDef @@ -102,6 +103,12 @@ type MountDef struct { Options string } +type VPNDef struct { + Name string `yaml:"name"` + IPs []string + Config string +} + type GroupDef struct { Name string Gid int