github.com/slspeek/camlistore_namedsearch@v0.0.0-20140519202248-ed6f70f7721a/pkg/serverinit/testdata/multipublish-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 "handler": "storage-index", 54 "handlerArgs": { 55 "blobSource": "/bs/", 56 "storage": { 57 "file": "/path/to/indexkv.db", 58 "type": "kv" 59 } 60 } 61 }, 62 "/music/": { 63 "handler": "publish", 64 "handlerArgs": { 65 "blobRoot": "/bs-and-maybe-also-index/", 66 "cache": "/cache/", 67 "css": [ 68 "pics.css" 69 ], 70 "goTemplate": "gallery.html", 71 "js": [ 72 "pics.js" 73 ], 74 "rootName": "musicRoot", 75 "rootPermanode": [ 76 "/sighelper/", 77 "sha1-999c6aae4ec8245dfe63edc4a2abb407824a4b5a" 78 ], 79 "scaledImage": { 80 "file": "/tmp/camli-cache/music-thumbnails.kv", 81 "type": "kv" 82 }, 83 "searchRoot": "/my-search/" 84 } 85 }, 86 "/my-search/": { 87 "handler": "search", 88 "handlerArgs": { 89 "index": "/index/", 90 "owner": "sha1-f2b0b7da718b97ce8c31591d8ed4645c777f3ef4", 91 "slurpToMemory": true 92 } 93 }, 94 "/pics/": { 95 "handler": "publish", 96 "handlerArgs": { 97 "blobRoot": "/bs-and-maybe-also-index/", 98 "cache": "/cache/", 99 "css": [ 100 "pics.css" 101 ], 102 "goTemplate": "gallery.html", 103 "js": [ 104 "pics.js" 105 ], 106 "rootName": "picsRoot", 107 "rootPermanode": [ 108 "/sighelper/", 109 "sha1-046c6aae4ec8245dfe63edc4a2abb407824a4b5a" 110 ], 111 "scaledImage": { 112 "file": "/tmp/camli-cache/pics-thumbnails.kv", 113 "type": "kv" 114 }, 115 "searchRoot": "/my-search/" 116 } 117 }, 118 "/setup/": { 119 "handler": "setup" 120 }, 121 "/share/": { 122 "handler": "share", 123 "handlerArgs": { 124 "blobRoot": "/bs/" 125 } 126 }, 127 "/sighelper/": { 128 "handler": "jsonsign", 129 "handlerArgs": { 130 "keyId": "26F5ABDA", 131 "publicKeyDest": "/bs-and-index/", 132 "secretRing": "/path/to/secring" 133 } 134 }, 135 "/status/": { 136 "handler": "status" 137 }, 138 "/sync/": { 139 "handler": "sync", 140 "handlerArgs": { 141 "from": "/bs/", 142 "queue": { 143 "file": "/tmp/blobs/sync-to-index-queue.kv", 144 "type": "kv" 145 }, 146 "to": "/index/" 147 } 148 }, 149 "/ui/": { 150 "handler": "ui", 151 "handlerArgs": { 152 "cache": "/cache/", 153 "jsonSignRoot": "/sighelper/", 154 "publishRoots": [ 155 "/music/", 156 "/pics/" 157 ], 158 "scaledImage": { 159 "file": "/tmp/blobs/thumbmeta.kv", 160 "type": "kv" 161 } 162 } 163 } 164 } 165 }