github.com/olivere/camlistore@v0.0.0-20140121221811-1b7ac2da0199/pkg/serverconfig/testdata/mongo-want.json (about) 1 { 2 "auth": "userpass:camlistore:pass3179", 3 "https": false, 4 "listen": "localhost:3179", 5 "prefixes": { 6 "/": { 7 "handler": "root", 8 "handlerArgs": { 9 "blobRoot": "/bs-and-maybe-also-index/", 10 "ownerName": "Alice", 11 "searchRoot": "/my-search/", 12 "statusRoot": "/status/", 13 "stealth": false 14 } 15 }, 16 "/bs-and-index/": { 17 "handler": "storage-replica", 18 "handlerArgs": { 19 "backends": [ 20 "/bs/", 21 "/index-mongo/" 22 ] 23 } 24 }, 25 "/bs-and-maybe-also-index/": { 26 "handler": "storage-cond", 27 "handlerArgs": { 28 "read": "/bs/", 29 "write": { 30 "else": "/bs/", 31 "if": "isSchema", 32 "then": "/bs-and-index/" 33 } 34 } 35 }, 36 "/bs/": { 37 "handler": "storage-filesystem", 38 "handlerArgs": { 39 "path": "/tmp/blobs" 40 } 41 }, 42 "/cache/": { 43 "handler": "storage-filesystem", 44 "handlerArgs": { 45 "path": "/tmp/blobs/cache" 46 } 47 }, 48 "/index-mongo/": { 49 "enabled": true, 50 "handler": "storage-mongodbindexer", 51 "handlerArgs": { 52 "blobSource": "/bs/", 53 "database": "camlitest", 54 "host": "localhost", 55 "password": "", 56 "user": "" 57 } 58 }, 59 "/my-search/": { 60 "handler": "search", 61 "handlerArgs": { 62 "index": "/index-mongo/", 63 "owner": "sha1-f2b0b7da718b97ce8c31591d8ed4645c777f3ef4", 64 "slurpToMemory": true 65 } 66 }, 67 "/setup/": { 68 "handler": "setup" 69 }, 70 "/share/": { 71 "handler": "share", 72 "handlerArgs": { 73 "blobRoot": "/bs/" 74 } 75 }, 76 "/sighelper/": { 77 "handler": "jsonsign", 78 "handlerArgs": { 79 "keyId": "26F5ABDA", 80 "publicKeyDest": "/bs-and-index/", 81 "secretRing": "/path/to/secring" 82 } 83 }, 84 "/status/": { 85 "handler": "status" 86 }, 87 "/sync/": { 88 "handler": "sync", 89 "handlerArgs": { 90 "from": "/bs/", 91 "queue": { 92 "file": "/tmp/blobs/sync-to-index-queue.kv", 93 "type": "kv" 94 }, 95 "to": "/index-mongo/" 96 } 97 }, 98 "/ui/": { 99 "handler": "ui", 100 "handlerArgs": { 101 "cache": "/cache/", 102 "jsonSignRoot": "/sighelper/", 103 "scaledImage": { 104 "file": "/tmp/blobs/thumbmeta.kv", 105 "type": "kv" 106 } 107 } 108 } 109 } 110 }