github.com/olivere/camlistore@v0.0.0-20140121221811-1b7ac2da0199/pkg/serverconfig/testdata/with_sourceroot-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 "searchRoot": "/my-search/", 11 "statusRoot": "/status/", 12 "stealth": false 13 } 14 }, 15 "/bs-and-index/": { 16 "handler": "storage-replica", 17 "handlerArgs": { 18 "backends": [ 19 "/bs/", 20 "/index-kv/" 21 ] 22 } 23 }, 24 "/bs-and-maybe-also-index/": { 25 "handler": "storage-cond", 26 "handlerArgs": { 27 "read": "/bs/", 28 "write": { 29 "else": "/bs/", 30 "if": "isSchema", 31 "then": "/bs-and-index/" 32 } 33 } 34 }, 35 "/bs/": { 36 "handler": "storage-filesystem", 37 "handlerArgs": { 38 "path": "/tmp/blobs" 39 } 40 }, 41 "/cache/": { 42 "handler": "storage-filesystem", 43 "handlerArgs": { 44 "path": "/tmp/blobs/cache" 45 } 46 }, 47 "/index-kv/": { 48 "handler": "storage-kvfileindexer", 49 "handlerArgs": { 50 "blobSource": "/bs/", 51 "file": "/path/to/indexkv.db" 52 } 53 }, 54 "/my-search/": { 55 "handler": "search", 56 "handlerArgs": { 57 "index": "/index-kv/", 58 "owner": "sha1-f2b0b7da718b97ce8c31591d8ed4645c777f3ef4", 59 "slurpToMemory": true 60 } 61 }, 62 "/setup/": { 63 "handler": "setup" 64 }, 65 "/share/": { 66 "handler": "share", 67 "handlerArgs": { 68 "blobRoot": "/bs/" 69 } 70 }, 71 "/sighelper/": { 72 "handler": "jsonsign", 73 "handlerArgs": { 74 "keyId": "26F5ABDA", 75 "publicKeyDest": "/bs-and-index/", 76 "secretRing": "/path/to/secring" 77 } 78 }, 79 "/status/": { 80 "handler": "status" 81 }, 82 "/sto-s3/": { 83 "handler": "storage-s3", 84 "handlerArgs": { 85 "aws_access_key": "key", 86 "aws_secret_access_key": "secret", 87 "bucket": "bucket" 88 } 89 }, 90 "/sync-to-s3/": { 91 "handler": "sync", 92 "handlerArgs": { 93 "from": "/bs/", 94 "queue": { 95 "file": "/tmp/blobs/sync-to-s3-queue.kv", 96 "type": "kv" 97 }, 98 "to": "/sto-s3/" 99 } 100 }, 101 "/sync/": { 102 "handler": "sync", 103 "handlerArgs": { 104 "from": "/bs/", 105 "queue": { 106 "file": "/tmp/blobs/sync-to-index-queue.kv", 107 "type": "kv" 108 }, 109 "to": "/index-kv/" 110 } 111 }, 112 "/ui/": { 113 "handler": "ui", 114 "handlerArgs": { 115 "cache": "/cache/", 116 "jsonSignRoot": "/sighelper/", 117 "scaledImage": { 118 "file": "/tmp/blobs/thumbmeta.kv", 119 "type": "kv" 120 }, 121 "sourceRoot": "/path/to/alternative/camli/source" 122 } 123 } 124 } 125 }