mirror of https://github.com/perkeep/perkeep.git
111 lines
2.0 KiB
JSON
111 lines
2.0 KiB
JSON
{
|
|
"auth": "userpass:camlistore:pass3179",
|
|
"https": false,
|
|
"listen": "localhost:3179",
|
|
"prefixes": {
|
|
"/": {
|
|
"handler": "root",
|
|
"handlerArgs": {
|
|
"blobRoot": "/bs-and-maybe-also-index/",
|
|
"searchRoot": "/my-search/",
|
|
"statusRoot": "/status/",
|
|
"stealth": false
|
|
}
|
|
},
|
|
"/bs-and-index/": {
|
|
"handler": "storage-replica",
|
|
"handlerArgs": {
|
|
"backends": [
|
|
"/bs/",
|
|
"/index/"
|
|
]
|
|
}
|
|
},
|
|
"/bs-and-maybe-also-index/": {
|
|
"handler": "storage-cond",
|
|
"handlerArgs": {
|
|
"read": "/bs/",
|
|
"write": {
|
|
"else": "/bs/",
|
|
"if": "isSchema",
|
|
"then": "/bs-and-index/"
|
|
}
|
|
}
|
|
},
|
|
"/bs/": {
|
|
"handler": "storage-s3",
|
|
"handlerArgs": {
|
|
"aws_access_key": "key",
|
|
"aws_secret_access_key": "secret",
|
|
"bucket": "bucket"
|
|
}
|
|
},
|
|
"/cache/": {
|
|
"handler": "storage-filesystem",
|
|
"handlerArgs": {
|
|
"path": "/tmp/camli-cache"
|
|
}
|
|
},
|
|
"/importer/": {
|
|
"handler": "importer",
|
|
"handlerArgs": {}
|
|
},
|
|
"/index/": {
|
|
"handler": "storage-index",
|
|
"handlerArgs": {
|
|
"blobSource": "/bs/",
|
|
"storage": {
|
|
"database": "camlitest",
|
|
"host": "localhost",
|
|
"password": "password",
|
|
"type": "mysql",
|
|
"user": "user"
|
|
}
|
|
}
|
|
},
|
|
"/my-search/": {
|
|
"handler": "search",
|
|
"handlerArgs": {
|
|
"index": "/index/",
|
|
"owner": "sha1-f2b0b7da718b97ce8c31591d8ed4645c777f3ef4",
|
|
"slurpToMemory": true
|
|
}
|
|
},
|
|
"/setup/": {
|
|
"handler": "setup"
|
|
},
|
|
"/share/": {
|
|
"handler": "share",
|
|
"handlerArgs": {
|
|
"blobRoot": "/bs/"
|
|
}
|
|
},
|
|
"/sighelper/": {
|
|
"handler": "jsonsign",
|
|
"handlerArgs": {
|
|
"keyId": "26F5ABDA",
|
|
"publicKeyDest": "/bs-and-index/",
|
|
"secretRing": "/path/to/secring"
|
|
}
|
|
},
|
|
"/status/": {
|
|
"handler": "status"
|
|
},
|
|
"/sync/": {
|
|
"handler": "sync",
|
|
"handlerArgs": {
|
|
"from": "/bs/",
|
|
"idle": true,
|
|
"to": "/index/"
|
|
}
|
|
},
|
|
"/ui/": {
|
|
"handler": "ui",
|
|
"handlerArgs": {
|
|
"cache": "/cache/",
|
|
"jsonSignRoot": "/sighelper/"
|
|
}
|
|
}
|
|
}
|
|
}
|