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