github.com/olivere/camlistore@v0.0.0-20140121221811-1b7ac2da0199/pkg/serverconfig/testdata/default-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-kv/" 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-kv/": { 49 "handler": "storage-kvfileindexer", 50 "handlerArgs": { 51 "blobSource": "/bs/", 52 "file": "/path/to/indexkv.db" 53 } 54 }, 55 "/my-search/": { 56 "handler": "search", 57 "handlerArgs": { 58 "index": "/index-kv/", 59 "owner": "sha1-f2b0b7da718b97ce8c31591d8ed4645c777f3ef4", 60 "slurpToMemory": true 61 } 62 }, 63 "/setup/": { 64 "handler": "setup" 65 }, 66 "/share/": { 67 "handler": "share", 68 "handlerArgs": { 69 "blobRoot": "/bs/" 70 } 71 }, 72 "/sighelper/": { 73 "handler": "jsonsign", 74 "handlerArgs": { 75 "keyId": "26F5ABDA", 76 "publicKeyDest": "/bs-and-index/", 77 "secretRing": "/path/to/secring" 78 } 79 }, 80 "/status/": { 81 "handler": "status" 82 }, 83 "/sync/": { 84 "handler": "sync", 85 "handlerArgs": { 86 "from": "/bs/", 87 "queue": { 88 "file": "/tmp/blobs/sync-to-index-queue.kv", 89 "type": "kv" 90 }, 91 "to": "/index-kv/" 92 } 93 }, 94 "/ui/": { 95 "handler": "ui", 96 "handlerArgs": { 97 "cache": "/cache/", 98 "jsonSignRoot": "/sighelper/", 99 "scaledImage": { 100 "file": "/tmp/blobs/thumbmeta.kv", 101 "type": "kv" 102 } 103 } 104 } 105 } 106 }