perkeep/pkg/test/testdata/server-config.json

82 lines
1.9 KiB
JSON

{ "_for-emacs": "-*- mode: js2;-*-",
"handlerConfig": true,
"https": false,
"baseURL": ["_env", "${CAMLI_BASE_URL}"],
"auth": "userpass:testuser:passTestWorld:+localhost",
"prefixes": {
"/": {
"handler": "root",
"handlerArgs": {
"ownerName": "test",
"blobRoot": "/bs-and-maybe-also-index/",
"statusRoot": "/status/",
"searchRoot": "/my-search/",
"stealth": false
}
},
"/bs-and-index/": {
"handler": "storage-replica",
"handlerArgs": {
"backends": ["/bs/", "/index-mem/"]
}
},
"/no-http-storage/": {
"internal": true,
"handler": "storage-replica",
"handlerArgs": {
"backends": ["/bs/"]
}
},
"/no-http-handler/": {
"internal": true,
"handler": "status"
},
"/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": ["_env", "${CAMLI_ROOT}"]
}
},
"/sighelper/": {
"handler": "jsonsign",
"handlerArgs": {
"secretRing": ["_env", "${CAMLI_SECRET_RING}"],
"keyId": "26F5ABDA",
"publicKeyDest": "/bs/"
}
},
"/index-mem/": {
"handler": "storage-memory-only-dev-indexer",
"handlerArgs": {
"blobSource": "/bs/"
}
},
"/my-search/": {
"handler": "search",
"handlerArgs": {
"index": "/index-mem/",
"owner": "sha1-f2b0b7da718b97ce8c31591d8ed4645c777f3ef4"
}
}
}
}