Commit 70c607de authored by Pasan Mallawaarachchi's avatar Pasan Mallawaarachchi 💻

port change

parent 70caa1e5
couchdb:
port: '84'
port: '5984'
host: couchdb_emanger
username: root
password: root
curl:
check_mail: http://root:root@couchdb_emanger:84/outbox/_all_docs/?limit=1 #http://root:root@0.0.0.0:5984/outbox/_all_docs/?limit=1
get_outbox_mail: http://root:root@couchdb_emanger:84/outbox/
delete_outbox_mail: http://root:root@couchdb_emanger:84/outbox/
add_sent_mail: http://root:root@couchdb_emanger:84/sentitems/
add_mail_log: http://root:root@couchdb_emanger:84/mail_logs/
check_mail: http://root:root@couchdb_emanger:5984/outbox/_all_docs/?limit=1 #http://root:root@0.0.0.0:5984/outbox/_all_docs/?limit=1
get_outbox_mail: http://root:root@couchdb_emanger:5984/outbox/
delete_outbox_mail: http://root:root@couchdb_emanger:5984/outbox/
add_sent_mail: http://root:root@couchdb_emanger:5984/sentitems/
add_mail_log: http://root:root@couchdb_emanger:5984/mail_logs/
protocols:
method: http://
requests:
......
......@@ -154,7 +154,7 @@ func main() {
if reqErr != nil {
alert := " Error creating request to OUTBOX DB \n" + reqErr.Error()
alertAdmin(alert)
panic(reqErr)
//panic(reqErr)
}
req.Header.Set(config.Requests.HeaderType, config.Requests.HeaderJson)
......@@ -162,7 +162,7 @@ func main() {
if respErr != nil {
alert := " Error in getting email from the OUTBOX DB \n" + respErr.Error()
alertAdmin(alert)
panic(respErr)
//panic(respErr)
}
defer resp.Body.Close()
respbody, _ := ioutil.ReadAll(resp.Body)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment