2011-05-02 01:36:11 +00:00
|
|
|
{ "_for-emacs": "-*- mode: js2;-*-",
|
2012-03-19 20:09:00 +00:00
|
|
|
"handlerConfig": true,
|
2011-05-14 23:40:16 +00:00
|
|
|
"baseURL": ["_env", "${CAMLI_BASEURL}"],
|
2011-11-16 10:41:38 +00:00
|
|
|
"auth": ["_env", "${CAMLI_AUTH}"],
|
2011-11-28 17:45:08 +00:00
|
|
|
"https": ["_env", "${CAMLI_TLS}", false],
|
2013-06-25 14:44:49 +00:00
|
|
|
"TLSCertFile": "config/selfgen_pem.crt",
|
|
|
|
"TLSKeyFile": "config/selfgen_pem.key",
|
2011-05-02 01:36:11 +00:00
|
|
|
"prefixes": {
|
|
|
|
"/": {
|
|
|
|
"handler": "root",
|
|
|
|
"handlerArgs": {
|
2012-12-12 02:41:23 +00:00
|
|
|
"ownerName": ["_env", "${USER}-dev"],
|
2012-11-07 17:57:43 +00:00
|
|
|
"blobRoot": "/bs-and-maybe-also-index/",
|
2013-06-05 17:18:27 +00:00
|
|
|
"statusRoot": "/status/",
|
2012-11-07 17:57:43 +00:00
|
|
|
"searchRoot": "/my-search/",
|
2011-05-02 01:36:11 +00:00
|
|
|
"stealth": false
|
|
|
|
}
|
|
|
|
},
|
2011-06-17 03:45:47 +00:00
|
|
|
|
2011-06-19 20:09:43 +00:00
|
|
|
"/blog/": {
|
2011-06-17 03:45:47 +00:00
|
|
|
"handler": "publish",
|
|
|
|
"handlerArgs": {
|
2011-06-19 20:09:43 +00:00
|
|
|
"rootName": "dev-blog-root",
|
2012-03-03 20:54:20 +00:00
|
|
|
"blobRoot": "/bs-and-maybe-also-index/",
|
2011-06-17 03:45:47 +00:00
|
|
|
"searchRoot": "/my-search/",
|
2011-06-23 19:11:01 +00:00
|
|
|
"cache": "/cache/",
|
|
|
|
"devBootstrapPermanodeUsing": "/sighelper/"
|
2011-06-17 03:45:47 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2011-06-19 20:09:43 +00:00
|
|
|
"/pics/": {
|
|
|
|
"handler": "publish",
|
2011-05-02 01:36:11 +00:00
|
|
|
"handlerArgs": {
|
2011-06-19 20:09:43 +00:00
|
|
|
"rootName": "dev-pics-root",
|
2012-03-03 20:54:20 +00:00
|
|
|
"blobRoot": "/bs-and-maybe-also-index/",
|
2011-06-19 20:09:43 +00:00
|
|
|
"searchRoot": "/my-search/",
|
2011-06-23 19:11:01 +00:00
|
|
|
"cache": "/cache/",
|
2011-10-25 20:30:02 +00:00
|
|
|
"scaledImage": "lrucache",
|
2011-07-08 17:03:53 +00:00
|
|
|
"css": ["pics.css"],
|
2013-05-24 21:19:29 +00:00
|
|
|
"js": ["pics.js"],
|
2011-06-23 19:11:01 +00:00
|
|
|
"devBootstrapPermanodeUsing": "/sighelper/"
|
2011-06-19 20:09:43 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2011-07-08 16:08:41 +00:00
|
|
|
"/stub-test-disable/": {
|
|
|
|
"handler": "publish",
|
|
|
|
"enabled": false,
|
|
|
|
"handlerArgs": {
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2011-06-19 20:09:43 +00:00
|
|
|
"/ui/": {
|
|
|
|
"handler": "ui",
|
|
|
|
"handlerArgs": {
|
2013-06-19 06:14:36 +00:00
|
|
|
"sourceRoot": ["_env", "${CAMLI_DEV_CAMLI_ROOT}", ""],
|
2011-06-04 16:58:50 +00:00
|
|
|
"jsonSignRoot": "/sighelper/",
|
2011-06-19 20:09:43 +00:00
|
|
|
"cache": "/cache/",
|
2011-10-25 20:30:02 +00:00
|
|
|
"scaledImage": "lrucache",
|
2011-06-19 20:09:43 +00:00
|
|
|
"publishRoots": ["/blog/", "/pics/"]
|
|
|
|
}
|
2011-05-02 01:36:11 +00:00
|
|
|
},
|
|
|
|
|
2013-06-05 17:18:27 +00:00
|
|
|
"/status/": {
|
|
|
|
"handler": "status"
|
|
|
|
},
|
|
|
|
|
2011-05-09 13:05:58 +00:00
|
|
|
"/sync/": {
|
|
|
|
"handler": "sync",
|
|
|
|
"handlerArgs": {
|
|
|
|
"from": "/bs/",
|
2012-11-07 21:40:17 +00:00
|
|
|
"to": ["_env", "${CAMLI_INDEXER_PATH}"],
|
2013-08-23 22:19:21 +00:00
|
|
|
"fullSyncOnStart": ["_env", "${CAMLI_MEMINDEX_ENABLED}"],
|
|
|
|
"blockingFullSyncOnStart": ["_env", "${CAMLI_MEMINDEX_ENABLED}"]
|
2011-05-09 13:05:58 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
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": {
|
2011-11-26 20:30:22 +00:00
|
|
|
"backends": ["/bs/", ["_env", "${CAMLI_INDEXER_PATH}"]]
|
2011-06-04 04:52:56 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"/bs-and-maybe-also-index/": {
|
|
|
|
"handler": "storage-cond",
|
|
|
|
"handlerArgs": {
|
2011-06-04 15:46:42 +00:00
|
|
|
"write": {
|
|
|
|
"if": "isSchema",
|
|
|
|
"then": "/bs-and-index/",
|
|
|
|
"else": "/bs/"
|
|
|
|
},
|
|
|
|
"read": "/bs/"
|
2011-06-04 04:52:56 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
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-06-04 16:58:50 +00:00
|
|
|
"/cache/": {
|
|
|
|
"handler": "storage-filesystem",
|
|
|
|
"handlerArgs": {
|
|
|
|
"path": ["_env", "${CAMLI_ROOT_CACHE}"]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
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}"]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2011-06-19 20:09:43 +00:00
|
|
|
"/s2/": {
|
|
|
|
"handler": "storage-filesystem",
|
|
|
|
"handlerArgs": {
|
|
|
|
"path": ["_env", "${CAMLI_ROOT_SHARD2}"]
|
2011-05-21 16:26:20 +00:00
|
|
|
}
|
2011-06-19 20:09:43 +00:00
|
|
|
},
|
2011-05-21 16:26:20 +00:00
|
|
|
|
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}"]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2013-06-15 22:05:27 +00:00
|
|
|
"/enc/": {
|
|
|
|
"handler": "storage-encrypt",
|
|
|
|
"handlerArgs": {
|
2013-06-16 03:08:37 +00:00
|
|
|
"I_AGREE": "that encryption support hasn't been peer-reviewed, isn't finished, and its format might change.",
|
2013-06-15 22:05:27 +00:00
|
|
|
"meta": "/encmeta/",
|
|
|
|
"blobs": "/encblob/",
|
|
|
|
"key": "000102030405060708090a0b0c0d0e0f"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"/encmeta/": {
|
|
|
|
"handler": "storage-filesystem",
|
|
|
|
"handlerArgs": {
|
|
|
|
"path": ["_env", "${CAMLI_ROOT_ENCMETA}"]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"/encblob/": {
|
|
|
|
"handler": "storage-filesystem",
|
|
|
|
"handlerArgs": {
|
|
|
|
"path": ["_env", "${CAMLI_ROOT_ENCBLOB}"]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2011-11-26 20:30:22 +00:00
|
|
|
"/index-mem/": {
|
2013-08-23 22:19:21 +00:00
|
|
|
"enabled": ["_env", "${CAMLI_MEMINDEX_ENABLED}"],
|
2011-11-26 20:30:22 +00:00
|
|
|
"handler": "storage-memory-only-dev-indexer",
|
|
|
|
"handlerArgs": {
|
|
|
|
"blobSource": "/bs/"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2013-08-23 22:19:21 +00:00
|
|
|
"/index-kv/": {
|
|
|
|
"enabled": ["_env", "${CAMLI_KVINDEX_ENABLED}"],
|
|
|
|
"handler": "storage-kvfileindexer",
|
|
|
|
"handlerArgs": {
|
|
|
|
"blobSource": "/bs/",
|
|
|
|
"file": ["_env", "${CAMLI_KVINDEX_FILE}", ""]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2011-12-25 20:30:56 +00:00
|
|
|
"/index-mongo/": {
|
|
|
|
"enabled": ["_env", "${CAMLI_MONGO_ENABLED}", true],
|
|
|
|
"handler": "storage-mongodbindexer",
|
|
|
|
"handlerArgs": {
|
2013-09-09 20:54:32 +00:00
|
|
|
"host": "localhost",
|
2011-12-25 20:30:56 +00:00
|
|
|
"database": ["_env", "${CAMLI_DBNAME}"],
|
|
|
|
"blobSource": "/bs/"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2011-11-26 20:30:22 +00:00
|
|
|
"/index-mysql/": {
|
|
|
|
"enabled": ["_env", "${CAMLI_MYSQL_ENABLED}", true],
|
2011-05-30 05:28:17 +00:00
|
|
|
"handler": "storage-mysqlindexer",
|
2011-05-02 01:36:11 +00:00
|
|
|
"handlerArgs": {
|
2011-07-02 02:16:58 +00:00
|
|
|
"database": ["_env", "${CAMLI_DBNAME}"],
|
2011-06-09 00:49:31 +00:00
|
|
|
"user": "root",
|
|
|
|
"password": "root",
|
|
|
|
"host": "127.0.0.1",
|
|
|
|
"blobSource": "/bs/"
|
2011-05-02 01:36:11 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2012-11-03 18:58:50 +00:00
|
|
|
"/index-postgres/": {
|
|
|
|
"enabled": ["_env", "${CAMLI_POSTGRES_ENABLED}", true],
|
|
|
|
"handler": "storage-postgresindexer",
|
|
|
|
"handlerArgs": {
|
|
|
|
"database": ["_env", "${CAMLI_DBNAME}"],
|
|
|
|
"user": "postgres",
|
|
|
|
"password": "postgres",
|
|
|
|
"host": "127.0.0.1",
|
|
|
|
"blobSource": "/bs/"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2011-05-02 01:36:11 +00:00
|
|
|
"/my-search/": {
|
|
|
|
"handler": "search",
|
|
|
|
"handlerArgs": {
|
2011-11-26 20:30:22 +00:00
|
|
|
"index": ["_env", "${CAMLI_INDEXER_PATH}"],
|
2012-11-07 21:40:17 +00:00
|
|
|
"owner": "sha1-f2b0b7da718b97ce8c31591d8ed4645c777f3ef4",
|
|
|
|
"devBlockStartupOn": "/sync/"
|
2011-05-02 01:36:11 +00:00
|
|
|
}
|
2013-06-23 20:50:02 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"/share/": {
|
|
|
|
"handler": "share",
|
|
|
|
"handlerArgs": {
|
|
|
|
"blobRoot": "/bs/"
|
|
|
|
}
|
2011-05-02 01:36:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|