github.com/olivere/camlistore@v0.0.0-20140121221811-1b7ac2da0199/pkg/serverconfig/testdata/mem-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": "Brad", 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 "/sto-googlecloudstorage/": { 84 "handler": "storage-googlecloudstorage", 85 "handlerArgs": { 86 "auth": { 87 "client_id": "clientId", 88 "client_secret": "clientSecret", 89 "refresh_token": "refreshToken" 90 }, 91 "bucket": "bucketName" 92 } 93 }, 94 "/sto-googledrive/": { 95 "handler": "storage-googledrive", 96 "handlerArgs": { 97 "auth": { 98 "client_id": "clientId", 99 "client_secret": "clientSecret", 100 "refresh_token": "refreshToken" 101 }, 102 "parent_id": "parentDirId" 103 } 104 }, 105 "/sto-s3/": { 106 "handler": "storage-s3", 107 "handlerArgs": { 108 "aws_access_key": "key", 109 "aws_secret_access_key": "secret", 110 "bucket": "bucket" 111 } 112 }, 113 "/sync-to-googlecloudstorage/": { 114 "handler": "sync", 115 "handlerArgs": { 116 "from": "/bs/", 117 "to": "/sto-googlecloudstorage/" 118 } 119 }, 120 "/sync-to-googledrive/": { 121 "handler": "sync", 122 "handlerArgs": { 123 "from": "/bs/", 124 "to": "/sto-googledrive/" 125 } 126 }, 127 "/sync-to-s3/": { 128 "handler": "sync", 129 "handlerArgs": { 130 "from": "/bs/", 131 "queue": { 132 "file": "/tmp/blobs/sync-to-s3-queue.kv", 133 "type": "kv" 134 }, 135 "to": "/sto-s3/" 136 } 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-kv/" 147 } 148 }, 149 "/ui/": { 150 "handler": "ui", 151 "handlerArgs": { 152 "cache": "/cache/", 153 "jsonSignRoot": "/sighelper/", 154 "scaledImage": { 155 "file": "/tmp/blobs/thumbmeta.kv", 156 "type": "kv" 157 } 158 } 159 } 160 } 161 }