Here's the location stanzas I'm using with nginx in front of sync gateway. Hope it's helpful to someone.
https://gist.github.com/nod/0e12567203e94e3646c1 -j On Saturday, October 4, 2014 7:35:04 PM UTC-5, Jens Alfke wrote: > > If you put your Sync Gateway(s) behind an nginx proxy, you'll need to > configure nginx to pass WebSocket connections. Andrew Reslan found > instructions > here <http://nginx.com/blog/websocket-nginx/> on the nginx website. > > (Come to think of it, you'll also need to configure nginx to pass through > the Server: response header, otherwise Couchbase Lite won't know it's > talking to Sync Gateway and won't even try to use WebSockets (nor several > other replication optimizations.) > > We should have an article in our docs on using nginx with Sync Gateway, > but for now I'm posting this. > > —Jens > -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/de3a8ff7-1694-4277-b476-263c60a13e5b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
