From 5c8dcafd5a6bbb87665aa940e4a57c6c786233e7 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sun, 15 Jan 2017 19:21:05 +0300 Subject: [PATCH] Minimalistic newnode configuration file --- src/cypherpunks.ru/nncp/cmd/nncp-newnode/main.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/cypherpunks.ru/nncp/cmd/nncp-newnode/main.go b/src/cypherpunks.ru/nncp/cmd/nncp-newnode/main.go index a8e73e6..5aeebf6 100644 --- a/src/cypherpunks.ru/nncp/cmd/nncp-newnode/main.go +++ b/src/cypherpunks.ru/nncp/cmd/nncp-newnode/main.go @@ -53,8 +53,6 @@ func main() { if err != nil { panic(err) } - incoming := "/path/to/upload/dir, omit it to forbid uploading" - freq := "/path/to/freq/able/dir, omit to forbid freqing" noisePub := nncp.ToBase32(nodeOur.NoisePub[:]) cfg := nncp.CfgYAML{ Self: nncp.NodeOurYAML{ @@ -73,23 +71,10 @@ func main() { SignPub: nncp.ToBase32(nodeOur.SignPub[:]), NoisePub: &noisePub, Sendmail: []string{nncp.DefaultSendmailPath}, - Incoming: &incoming, - Freq: &freq, - Addrs: map[string]string{"main": "localhost:5400"}, }, }, Spool: "/path/to/spool", Log: "/path/to/log.file", - Notify: &nncp.NotifyYAML{ - File: &nncp.FromToYAML{ - From: "nncp@localhost", - To: "root@localhost, delete section to disable notifies", - }, - Freq: &nncp.FromToYAML{ - From: "nncp@localhost", - To: "root@localhost, delete section to disable notifies", - }, - }, } raw, err := yaml.Marshal(&cfg) if err != nil { -- 2.44.0