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{
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 {