3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00

add comments explaining config file

This commit is contained in:
Jeremy Latt 2014-02-25 09:35:55 -08:00
parent 6882edeff7
commit 58f7d6dabf

View File

@ -1,13 +1,39 @@
{ "name": "irc.example.com", // Ergonomadic IRC Server Config
"motd": "motd.txt", // -----------------------------
"listeners": [ // Passwords are generated by `ergonomadic -genpasswd "$plaintext"`.
{ "address": "localhost:7777" }, // Comments are not allowed in the actual config file.
{ "address": "[::1]:7777" } ], {
"operators": [ // `name` is usually a hostname.
{ "name": "root", "name": "irc.example.com",
"password": "JDJhJDEwJFRWWGUya2E3Unk5bnZlb2o3alJ0ZnVQQm9ZVW1HOE53L29nVHg5QWh5TnpaMmtOaEwya1Vl" } ],
"debug": { // The path to the MOTD is relative to this file's directory.
"net": true, "motd": "motd.txt",
"client": false,
"channel": false, // PASS command password
"server": false } } "password": "JDJhJDA0JHBBenUyV3Z5UU5iWUpiYmlNMlNLZC5VRDZDM21HUzFVbmxLUUI3NTVTLkZJOERLdUFaUWNt",
// `listeners` are places to bind and listen for
// connections. http://golang.org/pkg/net/#Dial demonstrates valid
// values for `net` and `address`. `net` is optional and defaults
// to `tcp`.
"listeners": [ {
"address": "localhost:7777"
}, {
"net": "tcp6",
"address": "[::1]:7777"
} ],
// Operators for the OPER command
"operators": [ {
"name": "root",
"password": "JDJhJDA0JHBBenUyV3Z5UU5iWUpiYmlNMlNLZC5VRDZDM21HUzFVbmxLUUI3NTVTLkZJOERLdUFaUWNt"
} ],
// Global debug flags. `net` generates a lot of output.
"debug": {
"net": true,
"client": false,
"channel": false,
"server": false
}
}