mirror of https://github.com/perkeep/perkeep.git
108 lines
1.9 KiB
JSON
108 lines
1.9 KiB
JSON
{
|
|
"baseURL": "http://localhost:3179",
|
|
"auth": "userpass:camlistore:pass3179",
|
|
"https": false,
|
|
"prefixes": {
|
|
"/": {
|
|
"handler": "root",
|
|
"handlerArgs": {
|
|
"stealth": false
|
|
}
|
|
},
|
|
|
|
"/blog/": {
|
|
"handler": "publish",
|
|
"handlerArgs": {
|
|
"rootName": "blogRoot",
|
|
"blobRoot": "/bs-and-maybe-also-index/",
|
|
"searchRoot": "/my-search/",
|
|
"rootPermanode": "sha1-xxxxx",
|
|
"cache": "/cache/",
|
|
"css": ["blog-purple.css"]
|
|
}
|
|
},
|
|
|
|
"/ui/": {
|
|
"handler": "ui",
|
|
"handlerArgs": {
|
|
"blobRoot": "/bs-and-maybe-also-index/",
|
|
"searchRoot": "/my-search/",
|
|
"jsonSignRoot": "/sighelper/",
|
|
"cache": "/cache/",
|
|
"scaledImage": "lrucache",
|
|
"publishRoots": ["/blog/"]
|
|
}
|
|
},
|
|
|
|
"/setup/": {
|
|
"handler": "setup"
|
|
},
|
|
|
|
"/sync/": {
|
|
"handler": "sync",
|
|
"handlerArgs": {
|
|
"from": "/bs/",
|
|
"to": "/index-mem/"
|
|
}
|
|
},
|
|
|
|
"/sighelper/": {
|
|
"handler": "jsonsign",
|
|
"handlerArgs": {
|
|
"secretRing": "/path/to/secring",
|
|
"keyId": "26F5ABDA",
|
|
"publicKeyDest": "/bs-and-index/"
|
|
}
|
|
},
|
|
|
|
"/bs-and-index/": {
|
|
"handler": "storage-replica",
|
|
"handlerArgs": {
|
|
"backends": ["/bs/", "/index-mem/"]
|
|
}
|
|
},
|
|
|
|
"/bs-and-maybe-also-index/": {
|
|
"handler": "storage-cond",
|
|
"handlerArgs": {
|
|
"write": {
|
|
"if": "isSchema",
|
|
"then": "/bs-and-index/",
|
|
"else": "/bs/"
|
|
},
|
|
"read": "/bs/"
|
|
}
|
|
},
|
|
|
|
"/bs/": {
|
|
"handler": "storage-filesystem",
|
|
"handlerArgs": {
|
|
"path": "/tmp/blobs"
|
|
}
|
|
},
|
|
|
|
"/cache/": {
|
|
"handler": "storage-filesystem",
|
|
"handlerArgs": {
|
|
"path": "/tmp/blobs/cache"
|
|
}
|
|
},
|
|
|
|
"/index-mem/": {
|
|
"handler": "storage-memory-only-dev-indexer",
|
|
"handlerArgs": {
|
|
"blobSource": "/bs/"
|
|
}
|
|
},
|
|
|
|
"/my-search/": {
|
|
"handler": "search",
|
|
"handlerArgs": {
|
|
"index": "/index-mem/",
|
|
"owner": "sha1-f2b0b7da718b97ce8c31591d8ed4645c777f3ef4"
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|