github.com/slspeek/camlistore_namedsearch@v0.0.0-20140519202248-ed6f70f7721a/pkg/serverinit/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/" 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 "/importer/": { 49 "handler": "importer", 50 "handlerArgs": {} 51 }, 52 "/index/": { 53 "handler": "storage-index", 54 "handlerArgs": { 55 "blobSource": "/bs/", 56 "storage": { 57 "file": "/path/to/indexkv.db", 58 "type": "kv" 59 } 60 } 61 }, 62 "/my-search/": { 63 "handler": "search", 64 "handlerArgs": { 65 "index": "/index/", 66 "owner": "sha1-f2b0b7da718b97ce8c31591d8ed4645c777f3ef4", 67 "slurpToMemory": true 68 } 69 }, 70 "/setup/": { 71 "handler": "setup" 72 }, 73 "/share/": { 74 "handler": "share", 75 "handlerArgs": { 76 "blobRoot": "/bs/" 77 } 78 }, 79 "/sighelper/": { 80 "handler": "jsonsign", 81 "handlerArgs": { 82 "keyId": "26F5ABDA", 83 "publicKeyDest": "/bs-and-index/", 84 "secretRing": "/path/to/secring" 85 } 86 }, 87 "/status/": { 88 "handler": "status" 89 }, 90 "/sto-googlecloudstorage/": { 91 "handler": "storage-googlecloudstorage", 92 "handlerArgs": { 93 "auth": { 94 "client_id": "clientId", 95 "client_secret": "clientSecret", 96 "refresh_token": "refreshToken" 97 }, 98 "bucket": "bucketName" 99 } 100 }, 101 "/sto-googledrive/": { 102 "handler": "storage-googledrive", 103 "handlerArgs": { 104 "auth": { 105 "client_id": "clientId", 106 "client_secret": "clientSecret", 107 "refresh_token": "refreshToken" 108 }, 109 "parent_id": "parentDirId" 110 } 111 }, 112 "/sto-s3/": { 113 "handler": "storage-s3", 114 "handlerArgs": { 115 "aws_access_key": "key", 116 "aws_secret_access_key": "secret", 117 "bucket": "bucket" 118 } 119 }, 120 "/sync-to-googlecloudstorage/": { 121 "handler": "sync", 122 "handlerArgs": { 123 "from": "/bs/", 124 "queue": { 125 "file": "/tmp/blobs/sync-to-googlecloud-queue.kv", 126 "type": "kv" 127 }, 128 "to": "/sto-googlecloudstorage/" 129 } 130 }, 131 "/sync-to-googledrive/": { 132 "handler": "sync", 133 "handlerArgs": { 134 "from": "/bs/", 135 "queue": { 136 "file": "/tmp/blobs/sync-to-googledrive-queue.kv", 137 "type": "kv" 138 }, 139 "to": "/sto-googledrive/" 140 } 141 }, 142 "/sync-to-s3/": { 143 "handler": "sync", 144 "handlerArgs": { 145 "from": "/bs/", 146 "queue": { 147 "file": "/tmp/blobs/sync-to-s3-queue.kv", 148 "type": "kv" 149 }, 150 "to": "/sto-s3/" 151 } 152 }, 153 "/sync/": { 154 "handler": "sync", 155 "handlerArgs": { 156 "from": "/bs/", 157 "queue": { 158 "file": "/tmp/blobs/sync-to-index-queue.kv", 159 "type": "kv" 160 }, 161 "to": "/index/" 162 } 163 }, 164 "/ui/": { 165 "handler": "ui", 166 "handlerArgs": { 167 "cache": "/cache/", 168 "jsonSignRoot": "/sighelper/", 169 "scaledImage": { 170 "file": "/tmp/blobs/thumbmeta.kv", 171 "type": "kv" 172 } 173 } 174 } 175 } 176 }