forked from Telodendria/Telodendria
Jordan Bancino
e13442c122
tls_read() and tls_write() may return TLS_WANT_POLLIN or TLS_WANT_POLLOUT if data isn't ready to be read or written yet. We have to account for this by converting it to EAGAIN, which is how a typical read() or write() function should behave. Also installed a SIGPIPE handler; we do not want to be terminated by SIGPIPE, and it's safe to ignore this signal because it should be handled thoroughly in the code.
26 lines
446 B
Text
26 lines
446 B
Text
{
|
|
"log": {
|
|
"output": "stdout",
|
|
"color": true,
|
|
"timestampFormat": "none",
|
|
"level": "debug"
|
|
},
|
|
"dataDir": "./data",
|
|
"listen": [
|
|
{
|
|
"port": 8008,
|
|
"tls": false
|
|
},
|
|
{
|
|
"port": 8448,
|
|
"tls": {
|
|
"cert": "telodendria.crt",
|
|
"key": "telodendria.key"
|
|
}
|
|
}
|
|
],
|
|
"registration": true,
|
|
"serverName": "localhost",
|
|
"baseUrl": "http:\/\/localhost:8008",
|
|
"federation": true
|
|
}
|