iriscouch / follow

Very stable, very reliable, NodeJS CouchDB _changes follower
Apache License 2.0
393 stars 82 forks source link

SSL #27

Closed sennav closed 10 years ago

sennav commented 11 years ago

I'm using nano to access couchdb, and my couchdb installation use https with a non-verified SSL. In "nano" I can change the request options through "request_defaults". I couldn't find how to do it in "follow", maybe I missed somewhere in documentation. I keep getting DEPTH_ZERO_SELF_SIGNED_CERT error.

I've tried to change line 111 follow.js to:

var req = request({'uri':self.db, 'headers':headers, 'strictSSL':false}, db_response)

But it still returns the same error. I guess there is another request object somewhere that I'm missing or I'm misunderstanding the error.

I dont know if post an issue for that is the best way to ask those questions. If not, I'm sorry please tell me the best way to do it. I couldnt find nothing on google.

Thanks

sennav commented 10 years ago

I didn't browse the code very well, or the code have changed. I find out that the requests parameters are supported. You only have to specify it at follow: (NOTE, I am using nano)

var feed = nanoDB.follow({feed:"continuous",since:"now",request:{strictSSL:false}});

Thanks anyway!