start on wireguard config
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
parent
f0719ee8a9
commit
2e34c8746e
11 changed files with 504 additions and 27 deletions
|
@ -83,6 +83,18 @@ func main() {
|
|||
Value: generateKey(),
|
||||
EnvVar: "HEIMDALL_CLUSTER_KEY",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "peer-network",
|
||||
Usage: "subnet to be used for peers",
|
||||
Value: "10.254.0.0/16",
|
||||
EnvVar: "HEIMDALL_PEER_NETWORK",
|
||||
},
|
||||
cli.IntFlag{
|
||||
Name: "wireguard-port",
|
||||
Usage: "wireguard port for peers",
|
||||
Value: 10100,
|
||||
EnvVar: "HEIMDALL_WIREGUARD_PORT",
|
||||
},
|
||||
}
|
||||
app.Before = func(c *cli.Context) error {
|
||||
if c.Bool("debug") {
|
||||
|
|
|
@ -45,6 +45,8 @@ func runServer(cx *cli.Context) error {
|
|||
GRPCAddress: cx.String("addr"),
|
||||
GRPCPeerAddress: cx.String("peer"),
|
||||
ClusterKey: cx.String("cluster-key"),
|
||||
PeerNetwork: cx.String("peer-network"),
|
||||
WireguardPort: cx.Int("wireguard-port"),
|
||||
RedisURL: cx.String("redis-url"),
|
||||
AdvertiseRedisURL: cx.String("advertise-redis-url"),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue