-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsync-gateway-config.json
39 lines (38 loc) · 1 KB
/
sync-gateway-config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
"log": [
"CRUD",
"REST+",
"Access",
"Changes+"
],
"facebook": {
"register": true
},
"adminInterface": ":4985",
"databases": {
"deepstyle": {
"server": "http://localhost:8091",
"bucket": "deepstyle",
"users": {
"GUEST": {
"disabled": false,
"admin_channels": [
"*"
]
}
},
"sync":`
function(doc, oldDoc) {
if (doc.type == "job") {
if (doc.owner) {
// put this doc in the doc.owner channel
channel(doc.owner);
// give access of doc.owner to the doc.owner channel
access(doc.owner, doc.owner);
}
}
}
`
}
}
}