From: Sergey Matveev Date: Sun, 15 Jan 2017 16:21:05 +0000 (+0300) Subject: Minimalistic newnode configuration file X-Git-Tag: 0.2^2~13 X-Git-Url: http://www.git.cypherpunks.ru/?a=commitdiff_plain;h=5c8dcafd5a6bbb87665aa940e4a57c6c786233e7;p=nncp.git Minimalistic newnode configuration file --- 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 {