github.com/slspeek/camlistore_namedsearch@v0.0.0-20140519202248-ed6f70f7721a/pkg/serverinit/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/" 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 "/importer/": { 49 "handler": "importer", 50 "handlerArgs": {} 51 }, 52 "/index/": { 53 "enabled": true, 54 "handler": "storage-index", 55 "handlerArgs": { 56 "blobSource": "/bs/", 57 "storage": { 58 "database": "camlitest", 59 "host": "localhost", 60 "password": "", 61 "type": "mongo", 62 "user": "" 63 } 64 } 65 }, 66 "/my-search/": { 67 "handler": "search", 68 "handlerArgs": { 69 "index": "/index/", 70 "owner": "sha1-f2b0b7da718b97ce8c31591d8ed4645c777f3ef4", 71 "slurpToMemory": true 72 } 73 }, 74 "/setup/": { 75 "handler": "setup" 76 }, 77 "/share/": { 78 "handler": "share", 79 "handlerArgs": { 80 "blobRoot": "/bs/" 81 } 82 }, 83 "/sighelper/": { 84 "handler": "jsonsign", 85 "handlerArgs": { 86 "keyId": "26F5ABDA", 87 "publicKeyDest": "/bs-and-index/", 88 "secretRing": "/path/to/secring" 89 } 90 }, 91 "/status/": { 92 "handler": "status" 93 }, 94 "/sync/": { 95 "handler": "sync", 96 "handlerArgs": { 97 "from": "/bs/", 98 "queue": { 99 "file": "/tmp/blobs/sync-to-index-queue.kv", 100 "type": "kv" 101 }, 102 "to": "/index/" 103 } 104 }, 105 "/ui/": { 106 "handler": "ui", 107 "handlerArgs": { 108 "cache": "/cache/", 109 "jsonSignRoot": "/sighelper/", 110 "scaledImage": { 111 "file": "/tmp/blobs/thumbmeta.kv", 112 "type": "kv" 113 } 114 } 115 } 116 } 117 }