2011-05-02 01:36:11 +00:00
|
|
|
{ "_for-emacs": "-*- mode: js2;-*-",
|
2011-05-14 23:40:16 +00:00
|
|
|
"baseURL": ["_env", "${CAMLI_BASEURL}"],
|
2011-05-02 01:36:11 +00:00
|
|
|
"password": ["_env", "${CAMLI_PASSWORD}"],
|
|
|
|
"prefixes": {
|
|
|
|
"/": {
|
|
|
|
"handler": "root",
|
|
|
|
"handlerArgs": {
|
|
|
|
"stealth": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/ui/": {
|
|
|
|
"handler": "ui",
|
|
|
|
"handlerArgs": {
|
|
|
|
"blobRoot": "/bs/",
|
|
|
|
"searchRoot": "/my-search/",
|
|
|
|
"jsonSignRoot": "/sighelper/"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2011-05-09 13:05:58 +00:00
|
|
|
"/sync/": {
|
|
|
|
"handler": "sync",
|
|
|
|
"handlerArgs": {
|
|
|
|
"from": "/bs/",
|
|
|
|
"to": "/indexer/"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2011-05-02 01:36:11 +00:00
|
|
|
"/sighelper/": {
|
|
|
|
"handler": "jsonsign",
|
|
|
|
"handlerArgs": {
|
2011-05-02 04:23:31 +00:00
|
|
|
"secretRing": ["_env", "${CAMLI_SECRET_RING}"],
|
2011-06-04 01:42:31 +00:00
|
|
|
"keyId": "26F5ABDA",
|
|
|
|
"publicKeyDest": "/bs/"
|
2011-05-02 01:36:11 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2011-06-04 04:52:56 +00:00
|
|
|
"/bs-and-index/": {
|
|
|
|
"handler": "storage-replica",
|
|
|
|
"handlerArgs": {
|
|
|
|
"backends": ["/bs/", "/indexer/"]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"/bs-and-maybe-also-index/": {
|
|
|
|
"handler": "storage-cond",
|
|
|
|
"handlerArgs": {
|
|
|
|
"if": "isSchema",
|
|
|
|
"then": "/bs-and-index/",
|
|
|
|
"else": "/bs/"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2011-05-02 01:36:11 +00:00
|
|
|
"/bs/": {
|
2011-05-30 05:28:17 +00:00
|
|
|
"handler": "storage-filesystem",
|
2011-05-02 01:36:11 +00:00
|
|
|
"handlerArgs": {
|
|
|
|
"path": ["_env", "${CAMLI_ROOT}"]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2011-05-21 16:26:20 +00:00
|
|
|
"/sharder/": {
|
2011-05-30 05:28:17 +00:00
|
|
|
"handler": "storage-shard",
|
2011-05-21 16:26:20 +00:00
|
|
|
"handlerArgs": {
|
|
|
|
"backends": ["/s1/", "/s2/"]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"/s1/": {
|
2011-05-30 05:28:17 +00:00
|
|
|
"handler": "storage-filesystem",
|
2011-05-21 16:26:20 +00:00
|
|
|
"handlerArgs": {
|
|
|
|
"path": ["_env", "${CAMLI_ROOT_SHARD1}"]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"/s2/": {
|
2011-05-30 05:28:17 +00:00
|
|
|
"handler": "storage-filesystem",
|
2011-05-21 16:26:20 +00:00
|
|
|
"handlerArgs": {
|
|
|
|
"path": ["_env", "${CAMLI_ROOT_SHARD2}"]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2011-05-23 04:22:21 +00:00
|
|
|
"/repl/": {
|
2011-05-30 05:28:17 +00:00
|
|
|
"handler": "storage-replica",
|
2011-05-23 04:22:21 +00:00
|
|
|
"handlerArgs": {
|
|
|
|
"backends": ["/r1/", "/r2/", "/r3/"],
|
|
|
|
"minWritesForSuccess": 2
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"/r1/": {
|
2011-05-30 05:28:17 +00:00
|
|
|
"handler": "storage-filesystem",
|
2011-05-23 04:22:21 +00:00
|
|
|
"handlerArgs": {
|
|
|
|
"path": ["_env", "${CAMLI_ROOT_REPLICA1}"]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"/r2/": {
|
2011-05-30 05:28:17 +00:00
|
|
|
"handler": "storage-filesystem",
|
2011-05-23 04:22:21 +00:00
|
|
|
"handlerArgs": {
|
|
|
|
"path": ["_env", "${CAMLI_ROOT_REPLICA2}"]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"/r3/": {
|
2011-05-30 05:28:17 +00:00
|
|
|
"handler": "storage-filesystem",
|
2011-05-23 04:22:21 +00:00
|
|
|
"handlerArgs": {
|
|
|
|
"path": ["_env", "${CAMLI_ROOT_REPLICA3}"]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2011-05-02 01:36:11 +00:00
|
|
|
"/indexer/": {
|
2011-05-30 05:28:17 +00:00
|
|
|
"handler": "storage-mysqlindexer",
|
2011-05-02 01:36:11 +00:00
|
|
|
"handlerArgs": {
|
|
|
|
"database": "devcamlistore",
|
|
|
|
"user": "root",
|
|
|
|
"password": "root",
|
|
|
|
"host": "127.0.0.1"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"/my-search/": {
|
|
|
|
"handler": "search",
|
|
|
|
"handlerArgs": {
|
2011-05-21 16:26:20 +00:00
|
|
|
"index": "/indexer/",
|
2011-05-30 05:52:14 +00:00
|
|
|
"owner": "sha1-ad87ca5c78bd0ce1195c46f7c98e6025abbaf007"
|
2011-05-02 01:36:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|