github.com/olivere/camlistore@v0.0.0-20140121221811-1b7ac2da0199/pkg/serverconfig/testdata/s3_nolocaldisk-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-s3", 37 "handlerArgs": { 38 "aws_access_key": "key", 39 "aws_secret_access_key": "secret", 40 "bucket": "bucket" 41 } 42 }, 43 "/cache/": { 44 "handler": "storage-filesystem", 45 "handlerArgs": { 46 "path": "/tmp/camli-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 "idle": true, 89 "to": "/index-kv/" 90 } 91 }, 92 "/ui/": { 93 "handler": "ui", 94 "handlerArgs": { 95 "cache": "/cache/", 96 "jsonSignRoot": "/sighelper/" 97 } 98 } 99 } 100 }