github.com/olivere/camlistore@v0.0.0-20140121221811-1b7ac2da0199/pkg/serverconfig/testdata/with_gallery-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 "/pics/": { 63 "handler": "publish", 64 "handlerArgs": { 65 "blobRoot": "/bs-and-maybe-also-index/", 66 "cache": "/cache/", 67 "css": [ 68 "pics.css" 69 ], 70 "goTemplate": "gallery.html", 71 "js": [ 72 "pics.js" 73 ], 74 "rootName": "picsRoot", 75 "rootPermanode": [ 76 "/sighelper/", 77 "sha1-xxxxx" 78 ], 79 "scaledImage": { 80 "type": "kv", 81 "file": "/tmp/camli-cache/thumbnails.kv" 82 }, 83 "searchRoot": "/my-search/" 84 } 85 }, 86 "/setup/": { 87 "handler": "setup" 88 }, 89 "/share/": { 90 "handler": "share", 91 "handlerArgs": { 92 "blobRoot": "/bs/" 93 } 94 }, 95 "/sighelper/": { 96 "handler": "jsonsign", 97 "handlerArgs": { 98 "keyId": "26F5ABDA", 99 "publicKeyDest": "/bs-and-index/", 100 "secretRing": "/path/to/secring" 101 } 102 }, 103 "/status/": { 104 "handler": "status" 105 }, 106 "/sync/": { 107 "handler": "sync", 108 "handlerArgs": { 109 "from": "/bs/", 110 "queue": { 111 "file": "/tmp/blobs/sync-to-index-queue.kv", 112 "type": "kv" 113 }, 114 "to": "/index-kv/" 115 } 116 }, 117 "/ui/": { 118 "handler": "ui", 119 "handlerArgs": { 120 "cache": "/cache/", 121 "jsonSignRoot": "/sighelper/", 122 "publishRoots": [ 123 "/pics/" 124 ], 125 "scaledImage": { 126 "file": "/tmp/blobs/thumbmeta.kv", 127 "type": "kv" 128 } 129 } 130 } 131 } 132 }