mirror of
https://github.com/XRPLF/clio.git
synced 2026-02-05 14:35:27 +00:00
* Implement logging abstraction (#371) Fixes #290 * Fix pre-commit to only check staged files * Implement account ownership check and fix paging (#383) Fixes #222 * Remove the github action package signing step This will be done elsewhere. * include searched_all in error response of tx (#407) * helper function for subscribe to ensure cleanup (#402) * Add closed to header for all paths of ledger_data (#416) Fixes #219 * Add custom error for malformed owner and request (#417) Fixes #274 * Use custom malformedAddress error in ledger_entry (#419) Fixes #272 * Return lgrIdxsInvalid error for ledger_max_index less than ledger_min_index (#339) Fixes #263 * Update headers to use #pragma once * Add custom error for malformed request (#414) Fixes #276 * Return srcCurMalformed on invalid taker_pays in book_offers (#413) Fixes #267 * Fix source_location issue on MacOSX and Debug build (#431) Fixes #428 * Implement always adding git ref to version string (#430) Fixes #427 * add connection counting (#433) * Fix malformed output format over ws rpc (#426) Fixes #405 * Remove branch name from version string (#437) Fixes a bug from #430 * Implement cli parsing using boost::po (#436) Fixes #367 * Update documentation and config with ssl_cert_file and ssl_key_file (#443) Fixes #424 * Fix gateway balances to match rippled output (#441) Fixes #271 * Update README and example config to describe start_sequence (#438) Fixes #250 * Add copyright to top of each source file (#444) Fixes #411 * Increase file descriptor limit (#449) * Update readme with more log configurations (#447) Fixes #446 * Document dos_guard in example config. Log when client surpasses rate limit (#451) * Add unit tests for DOSGuard (#453) Fixes #452 * Build macOS and Ubuntu 22.04 (#456) build release/x.y.z branches * Add time measurement profiler (#458) Rebase * Match format to rippled error code (#461) Fixes #263 * Change error message to match rippled (#463) Fixes #263 * Add requests limit to DosGuard (#462) Fixing #448 * Set version to 1.0.4-rc2 Co-authored-by: Alex Kremer <akremer@ripple.com> Co-authored-by: CJ Cobb <46455409+cjcobb23@users.noreply.github.com> Co-authored-by: Francis Mendoza <francissamuelmendoza7@gmail.com> Co-authored-by: cyan317 <120398799+cindyyan317@users.noreply.github.com>
88 lines
2.7 KiB
JSON
88 lines
2.7 KiB
JSON
{
|
|
"database": {
|
|
"type": "cassandra",
|
|
"cassandra": {
|
|
"contact_points": "127.0.0.1",
|
|
"port": 9042,
|
|
"keyspace": "clio",
|
|
"replication_factor": 1,
|
|
"table_prefix": "",
|
|
"max_write_requests_outstanding": 25000,
|
|
"max_read_requests_outstanding": 30000,
|
|
"threads": 8
|
|
}
|
|
},
|
|
"etl_sources": [
|
|
{
|
|
"ip": "127.0.0.1",
|
|
"ws_port": "6006",
|
|
"grpc_port": "50051"
|
|
}
|
|
],
|
|
"dos_guard":
|
|
{
|
|
"whitelist":["127.0.0.1"], // comma-separated list of ips to exclude from rate limiting
|
|
/* The below values are the default values and are only specified here
|
|
* for documentation purposes. The rate limiter currently limits
|
|
* connections and bandwidth per ip. The rate limiter looks at the raw
|
|
* ip of a client connection, and so requests routed through a load
|
|
* balancer will all have the same ip and be treated as a single client
|
|
*/
|
|
"max_fetches":100000000, // max bytes per ip per sweep interval
|
|
"max_connections":1, // max connections per ip
|
|
"sweep_interval": 10 // time in seconds before resetting bytes per ip count
|
|
},
|
|
"cache":
|
|
{
|
|
"peers": [{"ip":"127.0.0.1","port":51234}]
|
|
},
|
|
"server":{
|
|
"ip": "0.0.0.0",
|
|
"port": 51233,
|
|
/* Max number of requests to queue up before rejecting further requests.
|
|
* Defaults to 0, which disables the limit
|
|
*/
|
|
"max_queue_size":500
|
|
},
|
|
"log_channels": [
|
|
{
|
|
"channel": "Backend",
|
|
"log_level": "fatal"
|
|
},
|
|
{
|
|
"channel": "WebServer",
|
|
"log_level": "info"
|
|
},
|
|
{
|
|
"channel": "Subscriptions",
|
|
"log_level": "info"
|
|
},
|
|
{
|
|
"channel": "RPC",
|
|
"log_level": "error"
|
|
},
|
|
{
|
|
"channel": "ETL",
|
|
"log_level": "debug"
|
|
},
|
|
{
|
|
"channel": "Performance",
|
|
"log_level": "trace"
|
|
}
|
|
],
|
|
"log_level": "info",
|
|
"log_format": "%TimeStamp% (%SourceLocation%) [%ThreadID%] %Channel%:%Severity% %Message%", // This is the default format
|
|
"log_to_console": true,
|
|
"log_directory": "./clio_log",
|
|
"log_rotation_size": 2048,
|
|
"log_directory_max_size": 51200,
|
|
"log_rotation_hour_interval": 12,
|
|
"log_tag_style": "uint",
|
|
"extractor_threads": 8,
|
|
"read_only": false,
|
|
//"start_sequence": [integer] the ledger index to start from,
|
|
//"finish_sequence": [integer] the ledger index to finish at,
|
|
//"ssl_cert_file" : "/full/path/to/cert.file",
|
|
//"ssl_key_file" : "/full/path/to/key.file"
|
|
}
|