github.com/slspeek/camlistore_namedsearch@v0.0.0-20140519202248-ed6f70f7721a/pkg/serverinit/testdata/tls-want.json (about) 1 { 2 "auth": "userpass:camlistore:pass3179", 3 "https": true, 4 "httpsCert": "/tls.crt", 5 "httpsKey": "/tls.key", 6 "listen": "1.2.3.4:443", 7 "prefixes": { 8 "/": { 9 "handler": "root", 10 "handlerArgs": { 11 "blobRoot": "/bs-and-maybe-also-index/", 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/" 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 "/importer/": { 50 "handler": "importer", 51 "handlerArgs": {} 52 }, 53 "/index/": { 54 "handler": "storage-index", 55 "handlerArgs": { 56 "blobSource": "/bs/", 57 "storage": { 58 "file": "/path/to/indexkv.db", 59 "type": "kv" 60 } 61 } 62 }, 63 "/my-search/": { 64 "handler": "search", 65 "handlerArgs": { 66 "index": "/index/", 67 "owner": "sha1-f2b0b7da718b97ce8c31591d8ed4645c777f3ef4", 68 "slurpToMemory": true 69 } 70 }, 71 "/setup/": { 72 "handler": "setup" 73 }, 74 "/share/": { 75 "handler": "share", 76 "handlerArgs": { 77 "blobRoot": "/bs/" 78 } 79 }, 80 "/sighelper/": { 81 "handler": "jsonsign", 82 "handlerArgs": { 83 "keyId": "26F5ABDA", 84 "publicKeyDest": "/bs-and-index/", 85 "secretRing": "/path/to/secring" 86 } 87 }, 88 "/status/": { 89 "handler": "status" 90 }, 91 "/sync/": { 92 "handler": "sync", 93 "handlerArgs": { 94 "from": "/bs/", 95 "queue": { 96 "file": "/tmp/blobs/sync-to-index-queue.kv", 97 "type": "kv" 98 }, 99 "to": "/index/" 100 } 101 }, 102 "/ui/": { 103 "handler": "ui", 104 "handlerArgs": { 105 "cache": "/cache/", 106 "jsonSignRoot": "/sighelper/", 107 "scaledImage": { 108 "file": "/tmp/blobs/thumbmeta.kv", 109 "type": "kv" 110 } 111 } 112 } 113 } 114 }