]> Cypherpunks.ru repositories - nncp.git/commitdiff
Minimalistic newnode configuration file
authorSergey Matveev <stargrave@stargrave.org>
Sun, 15 Jan 2017 16:21:05 +0000 (19:21 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 15 Jan 2017 16:21:05 +0000 (19:21 +0300)
src/cypherpunks.ru/nncp/cmd/nncp-newnode/main.go

index a8e73e6591eeb104a34348f2a913627cfd230ff3..5aeebf6c5dd18c96c19495b12c998efeb5edad13 100644 (file)
@@ -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 {