Skip to content

Instantly share code, notes, and snippets.

@PaulCapestany
Created July 12, 2013 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PaulCapestany/5987049 to your computer and use it in GitHub Desktop.
Save PaulCapestany/5987049 to your computer and use it in GitHub Desktop.
sync_gateway config example
{
"interface": ":4984",
"adminInterface": ":4985",
"log": ["HTTP+", "CRUD+", "Auth+", "Changes+", "Access", "Attach"],
"databases": {
"myapp": {
"server": "http://localhost:8091",
"sync": `function(doc) {channel(doc.channels);}`
},
"grocerydemo": {
"server": "http://localhost:8091",
"bucket": "grocerydemo",
"users": {
"GUEST": {
"disabled": false,
"admin_channels": ["*"]
}
},
"sync": `function(doc) {channel(doc.channels);}`
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment