mirror of https://github.com/perkeep/perkeep.git
177 lines
3.3 KiB
JSON
177 lines
3.3 KiB
JSON
{
|
|
"auth": "userpass:camlistore:pass3179",
|
|
"https": false,
|
|
"listen": "localhost:3179",
|
|
"prefixes": {
|
|
"/": {
|
|
"handler": "root",
|
|
"handlerArgs": {
|
|
"blobRoot": "/bs-and-maybe-also-index/",
|
|
"ownerName": "Brad",
|
|
"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-filesystem",
|
|
"handlerArgs": {
|
|
"path": "/tmp/blobs"
|
|
}
|
|
},
|
|
"/cache/": {
|
|
"handler": "storage-filesystem",
|
|
"handlerArgs": {
|
|
"path": "/tmp/blobs/cache"
|
|
}
|
|
},
|
|
"/importer/": {
|
|
"handler": "importer",
|
|
"handlerArgs": {}
|
|
},
|
|
"/index/": {
|
|
"handler": "storage-index",
|
|
"handlerArgs": {
|
|
"blobSource": "/bs/",
|
|
"storage": {
|
|
"file": "/path/to/indexkv.db",
|
|
"type": "kv"
|
|
}
|
|
}
|
|
},
|
|
"/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"
|
|
},
|
|
"/sto-googlecloudstorage/": {
|
|
"handler": "storage-googlecloudstorage",
|
|
"handlerArgs": {
|
|
"auth": {
|
|
"client_id": "clientId",
|
|
"client_secret": "clientSecret",
|
|
"refresh_token": "refreshToken"
|
|
},
|
|
"bucket": "bucketName"
|
|
}
|
|
},
|
|
"/sto-googledrive/": {
|
|
"handler": "storage-googledrive",
|
|
"handlerArgs": {
|
|
"auth": {
|
|
"client_id": "clientId",
|
|
"client_secret": "clientSecret",
|
|
"refresh_token": "refreshToken"
|
|
},
|
|
"parent_id": "parentDirId"
|
|
}
|
|
},
|
|
"/sto-s3/": {
|
|
"handler": "storage-s3",
|
|
"handlerArgs": {
|
|
"aws_access_key": "key",
|
|
"aws_secret_access_key": "secret",
|
|
"bucket": "bucket"
|
|
}
|
|
},
|
|
"/sync-to-googlecloudstorage/": {
|
|
"handler": "sync",
|
|
"handlerArgs": {
|
|
"from": "/bs/",
|
|
"queue": {
|
|
"file": "/tmp/blobs/sync-to-googlecloud-queue.kv",
|
|
"type": "kv"
|
|
},
|
|
"to": "/sto-googlecloudstorage/"
|
|
}
|
|
},
|
|
"/sync-to-googledrive/": {
|
|
"handler": "sync",
|
|
"handlerArgs": {
|
|
"from": "/bs/",
|
|
"queue": {
|
|
"file": "/tmp/blobs/sync-to-googledrive-queue.kv",
|
|
"type": "kv"
|
|
},
|
|
"to": "/sto-googledrive/"
|
|
}
|
|
},
|
|
"/sync-to-s3/": {
|
|
"handler": "sync",
|
|
"handlerArgs": {
|
|
"from": "/bs/",
|
|
"queue": {
|
|
"file": "/tmp/blobs/sync-to-s3-queue.kv",
|
|
"type": "kv"
|
|
},
|
|
"to": "/sto-s3/"
|
|
}
|
|
},
|
|
"/sync/": {
|
|
"handler": "sync",
|
|
"handlerArgs": {
|
|
"from": "/bs/",
|
|
"queue": {
|
|
"file": "/tmp/blobs/sync-to-index-queue.kv",
|
|
"type": "kv"
|
|
},
|
|
"to": "/index/"
|
|
}
|
|
},
|
|
"/ui/": {
|
|
"handler": "ui",
|
|
"handlerArgs": {
|
|
"cache": "/cache/",
|
|
"jsonSignRoot": "/sighelper/",
|
|
"scaledImage": {
|
|
"file": "/tmp/blobs/thumbmeta.kv",
|
|
"type": "kv"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|