Guest User

Untitled

a guest
Mar 4th, 2019
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.67 KB | None | 0 0
  1. #-------------------------------------------------------------------------------
  2. #
  3. # Rippled Server Instance Configuration Example
  4. #
  5. #-------------------------------------------------------------------------------
  6. #
  7. # Contents
  8. #
  9. # 1. Server
  10. #
  11. # 2. Peer Protocol
  12. #
  13. # 3. Ripple Protocol
  14. #
  15. # 4. HTTPS Client
  16. #
  17. # 5. Database
  18. #
  19. # 6. Diagnostics
  20. #
  21. # 7. Voting
  22. #
  23. # 8. Misc Settings
  24. #
  25. # 9. Example Settings
  26. #
  27. #-------------------------------------------------------------------------------
  28. #
  29. # Purpose
  30. #
  31. # This file documents and provides examples of all rippled server process
  32. # configuration options. When the rippled server instance is launched, it
  33. # looks for a file with the following name:
  34. #
  35. # rippled.cfg
  36. #
  37. # For more information on where the rippled server instance searches for
  38. # the file please visit the Ripple wiki. Specifically, the section explaining
  39. # the --conf command line option:
  40. #
  41. # https://ripple.com/wiki/Rippled#--conf.3Dpath
  42. #
  43. # This file should be named rippled.cfg. This file is UTF-8 with Dos, UNIX,
  44. # or Mac style end of lines. Blank lines and lines beginning with '#' are
  45. # ignored. Undefined sections are reserved. No escapes are currently defined.
  46. #
  47. # Notation
  48. #
  49. # In this document a simple BNF notation is used. Angle brackets denote
  50. # required elements, square brackets denote optional elements, and single
  51. # quotes indicate string literals. A vertical bar separating 1 or more
  52. # elements is a logical "or"; Any one of the elements may be chosen.
  53. # Parenthesis are notational only, and used to group elements, they are not
  54. # part of the syntax unless they appear in quotes. White space may always
  55. # appear between elements, it has no effect on values.
  56. #
  57. # <key> A required identifier
  58. # '=' The equals sign character
  59. # | Logical "or"
  60. # ( ) Used for grouping
  61. #
  62. #
  63. # An identifier is a string of upper or lower case letters, digits, or
  64. # underscores subject to the requirement that the first character of an
  65. # identifier must be a letter. Identifiers are not case sensitive (but
  66. # values may be).
  67. #
  68. # Some configuration sections contain key/value pairs. A line containing
  69. # a key/value pair has this syntax:
  70. #
  71. # <identifier> '=' <value>
  72. #
  73. # Depending on the section and key, different value types are possible:
  74. #
  75. # <integer> A signed integer
  76. # <unsigned> An unsigned integer
  77. # <flag> A boolean. 1 = true/yes/on, 0 = false/no/off.
  78. #
  79. # Consult the documentation on the key in question to determine the possible
  80. # value types.
  81. #
  82. #
  83. #
  84. #-------------------------------------------------------------------------------
  85. #
  86. # 1. Server
  87. #
  88. #----------
  89. #
  90. #
  91. #
  92. # rippled offers various server protocols to clients making inbound
  93. # connections. The listening ports rippled uses are "universal" ports
  94. # which may be configured to handshake in one or more of the available
  95. # supported protocols. These universal ports simplify administration:
  96. # A single open port can be used for multiple protocols.
  97. #
  98. # NOTE At least one server port must be defined in order
  99. # to accept incoming network connections.
  100. #
  101. #
  102. # [server]
  103. #
  104. # A list of port names and key/value pairs. A port name must start with a
  105. # letter and contain only letters and numbers. The name is not case-sensitive.
  106. # For each name in this list, rippled will look for a configuration file
  107. # section with the same name and use it to create a listening port. The
  108. # name is informational only; the choice of name does not affect the function
  109. # of the listening port.
  110. #
  111. # Key/value pairs specified in this section are optional, and apply to all
  112. # listening ports unless the port overrides the value in its section. They
  113. # may be considered default values.
  114. #
  115. # Suggestion:
  116. #
  117. # To avoid a conflict with port names and future configuration sections,
  118. # we recommend prepending "port_" to the port name. This prefix is not
  119. # required, but suggested.
  120. #
  121. # This example defines two ports with different port numbers and settings:
  122. #
  123. # [server]
  124. # port_public
  125. # port_private
  126. # port = 80
  127. #
  128. # [port_public]
  129. # ip=0.0.0.0
  130. # port = 443
  131. # protocol=peer,https
  132. #
  133. # [port_private]
  134. # ip=127.0.0.1
  135. # protocol=http
  136. #
  137. # When rippled is used as a command line client (for example, issuing a
  138. # server stop command), the first port advertising the http or https
  139. # protocol will be used to make the connection.
  140. #
  141. #
  142. #
  143. # [<name>]
  144. #
  145. # A series of key/value pairs that define the settings for the port with
  146. # the corresponding name. These keys are possible:
  147. #
  148. # ip = <IP-address>
  149. #
  150. # Required. Determines the IP address of the network interface to bind
  151. # to. To bind to all available interfaces, uses 0.0.0.0
  152. #
  153. # port = <number>
  154. #
  155. # Required. Sets the port number to use for this port.
  156. #
  157. # protocol = [ http, https, peer ]
  158. #
  159. # Required. A comma-separated list of protocols to support:
  160. #
  161. # http JSON-RPC over HTTP
  162. # https JSON-RPC over HTTPS
  163. # ws Websockets
  164. # wss Secure Websockets
  165. # peer Peer Protocol
  166. #
  167. # Restrictions:
  168. #
  169. # Only one port may be configured to support the peer protocol.
  170. # A port cannot have websocket and non websocket protocols at the
  171. # same time. It is possible have both Websockets and Secure Websockets
  172. # together in one port.
  173. #
  174. # NOTE If no ports support the peer protocol, rippled cannot
  175. # receive incoming peer connections or become a superpeer.
  176. #
  177. # limit = <number>
  178. #
  179. # Optional. An integer value that will limit the number of connected
  180. # clients that the port will accept. Once the limit is reached, new
  181. # connections will be refused until other clients disconnect.
  182. # Omit or set to 0 to allow unlimited numbers of clients.
  183. #
  184. # user = <text>
  185. # password = <text>
  186. #
  187. # When set, these credentials will be required on HTTP/S requests.
  188. # The credentials must be provided using HTTP's Basic Authentication
  189. # headers. If either or both fields are empty, then no credentials are
  190. # required. IP address restrictions, if any, will be checked in addition
  191. # to the credentials specified here.
  192. #
  193. # When acting in the client role, rippled will supply these credentials
  194. # using HTTP's Basic Authentication headers when making outbound HTTP/S
  195. # requests.
  196. #
  197. # admin = [ IP, IP, IP, ... ]
  198. #
  199. # A comma-separated list of IP addresses.
  200. #
  201. # When set, grants administrative command access to the specified IP
  202. # addresses. These commands may be issued over http, https, ws, or wss
  203. # if configured on the port. If unspecified, the default is to not allow
  204. # administrative commands.
  205. #
  206. # *SECURITY WARNING*
  207. # 0.0.0.0 may be specified to allow access from any IP address. It must
  208. # be the only address specified and cannot be combined with other IPs.
  209. # Use of this address can compromise server security, please consider its
  210. # use carefully.
  211. #
  212. # admin_user = <text>
  213. # admin_password = <text>
  214. #
  215. # When set, clients must provide these credentials in the submitted
  216. # JSON for any administrative command requests submitted to the HTTP/S,
  217. # WS, or WSS protocol interfaces. If administrative commands are
  218. # disabled for a port, these credentials have no effect.
  219. #
  220. # When acting in the client role, rippled will supply these credentials
  221. # in the submitted JSON for any administrative command requests when
  222. # invoking JSON-RPC commands on remote servers.
  223. #
  224. # secure_gateway = [ IP, IP, IP, ... ]
  225. #
  226. # A comma-separated list of IP addresses.
  227. #
  228. # When set, allows the specified IP addresses to pass HTTP headers
  229. # containing username and remote IP address for each session. If a
  230. # non-empty username is passed in this way, then resource controls
  231. # such as often resulting in "tooBusy" errors will be lifted. However,
  232. # administrative RPC commands such as "stop" will not be allowed.
  233. # The HTTP headers that secure_gateway hosts can set are X-User and
  234. # X-Forwarded-For. Only the X-User header affects resource controls.
  235. # However, both header values are logged to help identify user activity.
  236. # If no X-User header is passed, or if its value is empty, then
  237. # resource controls will default to those for non-administrative users.
  238. #
  239. # The secure_gateway IP addresses are intended to represent
  240. # proxies. Since rippled trusts these hosts, they must be
  241. # responsible for properly authenticating the remote user.
  242. #
  243. # The same IP address cannot be used in both "admin" and "secure_gateway"
  244. # lists for the same port. In this case, rippled will abort with an error
  245. # message to the console shortly after startup
  246. #
  247. # ssl_key = <filename>
  248. # ssl_cert = <filename>
  249. # ssl_chain = <filename>
  250. #
  251. # Use the specified files when configuring SSL on the port.
  252. #
  253. # NOTE If no files are specified and secure protocols are selected,
  254. # rippled will generate an internal self-signed certificate.
  255. #
  256. # The files have these meanings:
  257. #
  258. # ssl_key
  259. #
  260. # Specifies the filename holding the SSL key in PEM format.
  261. #
  262. # ssl_cert
  263. #
  264. # Specifies the path to the SSL certificate file in PEM format.
  265. # This is not needed if the chain includes it.
  266. #
  267. # ssl_chain
  268. #
  269. # If you need a certificate chain, specify the path to the
  270. # certificate chain here. The chain may include the end certificate.
  271. #
  272. # ssl_ciphers = <cipherlist>
  273. #
  274. # Control the ciphers which the server will support over SSL on the port,
  275. # specified using the OpenSSL "cipher list format".
  276. #
  277. # NOTE If unspecified, rippled will automatically configure a modern
  278. # cipher suite. This default suite should be widely supported.
  279. #
  280. # You should not modify this string unless you have a specific
  281. # reason and cryptographic expertise. Incorrect modification may
  282. # keep rippled from connecting to other instances of rippled or
  283. # prevent RPC and WebSocket clients from connecting.
  284. #
  285. # send_queue_limit = = [1..65535]
  286. #
  287. # A Websocket will disconnect when its send queue exceeds this limit.
  288. # The default is 100. A larger value may help with erratic disconnects but
  289. # may adversely affect server performance.
  290. #
  291. # WebSocket permessage-deflate extension options
  292. #
  293. # These settings configure the optional permessage-deflate extension
  294. # options and may appear on any port configuration entry. They are meaningful
  295. # only to ports which have enabled a WebSocket protocol.
  296. #
  297. # permessage_deflate = <flag>
  298. #
  299. # Determines if permessage_deflate extension negotiations are enabled.
  300. # When enabled, clients may request the extension and the server will
  301. # offer the enabled extension in response.
  302. #
  303. # client_max_window_bits = [9..15]
  304. # server_max_window_bits = [9..15]
  305. # client_no_context_takeover = <flag>
  306. # server_no_context_takeover = <flag>
  307. #
  308. # These optional settings control options related to the permessage-deflate
  309. # extension negotiation. For precise definitions of these fields please see
  310. # the RFC 7692, "Compression Extensions for WebSocket":
  311. # https://tools.ietf.org/html/rfc7692
  312. #
  313. # compress_level = [0..9]
  314. #
  315. # When set, determines the amount of compression attempted, where 0 is
  316. # the least amount and 9 is the most amount. Higher levels require more
  317. # CPU resources. Levels 1 through 3 use a fast compression algorithm,
  318. # while levels 4 through 9 use a more compact algorithm which uses more
  319. # CPU resources. If unspecified, a default of 3 is used.
  320. #
  321. # memory_level = [1..9]
  322. #
  323. # When set, determines the relative amount of memory used to hold
  324. # intermediate compression data. Higher numbers can give better compression
  325. # ratios at the cost of higher memory and CPU resources.
  326. #
  327. # [rpc_startup]
  328. #
  329. # Specify a list of RPC commands to run at startup.
  330. #
  331. # Examples:
  332. # { "command" : "server_info" }
  333. # { "command" : "log_level", "partition" : "ripplecalc", "severity" : "trace" }
  334. #
  335. #
  336. #
  337. # [websocket_ping_frequency]
  338. #
  339. # <number>
  340. #
  341. # The amount of time to wait in seconds, before sending a websocket 'ping'
  342. # message. Ping messages are used to determine if the remote end of the
  343. # connection is no longer available.
  344. #
  345. #
  346. #
  347. #-------------------------------------------------------------------------------
  348. #
  349. # 2. Peer Protocol
  350. #
  351. #-----------------
  352. #
  353. # These settings control security and access attributes of the Peer to Peer
  354. # server section of the rippled process. Peer Protocol implements the
  355. # Ripple Payment protocol. It is over peer connections that transactions
  356. # and validations are passed from to machine to machine, to determine the
  357. # contents of validated ledgers.
  358. #
  359. #
  360. #
  361. # [ips]
  362. #
  363. # List of hostnames or ips where the Ripple protocol is served. For a starter
  364. # list, you can either copy entries from: https://ripple.com/ripple.txt or if
  365. # you prefer you can specify r.ripple.com 51235
  366. #
  367. # One IPv4 address or domain names per line is allowed. A port may must be
  368. # specified after adding a space to the address. By convention, if known,
  369. # IPs are listed in from most to least trusted.
  370. #
  371. # Examples:
  372. # 192.168.0.1
  373. # 192.168.0.1 3939
  374. # r.ripple.com 51235
  375. #
  376. # This will give you a good, up-to-date list of addresses:
  377. #
  378. # [ips]
  379. # r.ripple.com 51235
  380. #
  381. # The default is:
  382. # [ips_fixed] addresses (if present)
  383. # or
  384. # ( r.ripple.com 51235 , zaphod.alloy.ee 51235 )
  385. #
  386. #
  387. # [ips_fixed]
  388. #
  389. # List of IP addresses or hostnames to which rippled should always attempt to
  390. # maintain peer connections with. This is useful for manually forming private
  391. # networks, for example to configure a validation server that connects to the
  392. # Ripple network through a public-facing server, or for building a set
  393. # of cluster peers.
  394. #
  395. # One IPv4 address or domain names per line is allowed. A port must be
  396. # specified after adding a space to the address.
  397. #
  398. #
  399. #
  400. # [peer_private]
  401. #
  402. # 0 or 1.
  403. #
  404. # 0: Request peers to broadcast your address. Normal outbound peer connections [default]
  405. # 1: Request peers not broadcast your address. Only connect to configured peers.
  406. #
  407. #
  408. #
  409. # [peers_max]
  410. #
  411. # The largest number of desired peer connections (incoming or outgoing).
  412. # Cluster and fixed peers do not count towards this total. There are
  413. # implementation-defined lower limits imposed on this value for security
  414. # purposes.
  415. #
  416. #
  417. #
  418. # [node_seed]
  419. #
  420. # This is used for clustering. To force a particular node seed or key, the
  421. # key can be set here. The format is the same as the validation_seed field.
  422. # To obtain a validation seed, use the validation_create command.
  423. #
  424. # Examples: RASH BUSH MILK LOOK BAD BRIM AVID GAFF BAIT ROT POD LOVE
  425. # shfArahZT9Q9ckTf3s1psJ7C7qzVN
  426. #
  427. #
  428. #
  429. # [cluster_nodes]
  430. #
  431. # To extend full trust to other nodes, place their node public keys here.
  432. # Generally, you should only do this for nodes under common administration.
  433. # Node public keys start with an 'n'. To give a node a name for identification
  434. # place a space after the public key and then the name.
  435. #
  436. #
  437. #
  438. # [sntp_servers]
  439. #
  440. # IP address or domain of NTP servers to use for time synchronization.
  441. #
  442. # These NTP servers are suitable for rippled servers located in the United
  443. # States:
  444. # time.windows.com
  445. # time.apple.com
  446. # time.nist.gov
  447. # pool.ntp.org
  448. #
  449. #
  450. #
  451. # [overlay]
  452. #
  453. # Controls settings related to the peer to peer overlay.
  454. #
  455. # A set of key/value pair parameters to configure the overlay.
  456. #
  457. # public_ip = <IP-address>
  458. #
  459. # If the server has a known, fixed public IPv4 address,
  460. # specify that IP address here in dotted decimal notation.
  461. # Peers will use this information to reject attempt to proxy
  462. # connections to or from this server.
  463. #
  464. # ip_limit = <number>
  465. #
  466. # The maximum number of incoming peer connections allowed by a single
  467. # IP that isn't classified as "private" in RFC1918. The implementation
  468. # imposes some hard and soft upper limits on this value to prevent a
  469. # single host from consuming all inbound slots. If the value is not
  470. # present the server will autoconfigure an appropriate limit.
  471. #
  472. #
  473. #
  474. # [transaction_queue] EXPERIMENTAL
  475. #
  476. # This section is EXPERIMENTAL, and should not be
  477. # present for production configuration settings.
  478. #
  479. # A set of key/value pair parameters to tune the performance of the
  480. # transaction queue.
  481. #
  482. # ledgers_in_queue = <number>
  483. #
  484. # The queue will be limited to this <number> of average ledgers'
  485. # worth of transactions. If the queue fills up, the transactions
  486. # with the lowest fee levels will be dropped from the queue any
  487. # time a transaction with a higher fee level is added.
  488. # Default: 20.
  489. #
  490. # minimum_queue_size = <number>
  491. #
  492. # The queue will always be able to hold at least this <number> of
  493. # transactions, regardless of recent ledger sizes or the value of
  494. # ledgers_in_queue. Default: 2000.
  495. #
  496. # retry_sequence_percent = <number>
  497. #
  498. # If a client replaces a transaction in the queue (same sequence
  499. # number as a transaction already in the queue), the new
  500. # transaction's fee must be more than <number> percent higher
  501. # than the original transaction's fee, or meet the current open
  502. # ledger fee to be considered. Default: 25.
  503. #
  504. # multi_txn_percent = <number>
  505. #
  506. # If a client submits multiple transactions (different sequence
  507. # numbers), later transactions must pay a fee at least <number>
  508. # percent higher than the transaction with the previous sequence
  509. # number.
  510. # Default: -90.
  511. #
  512. # minimum_escalation_multiplier = <number>
  513. #
  514. # At ledger close time, the median fee level of the transactions
  515. # in that ledger is used as a multiplier in escalation
  516. # calculations of the next ledger. This minimum value ensures that
  517. # the escalation is significant. Default: 500.
  518. #
  519. # minimum_txn_in_ledger = <number>
  520. #
  521. # Minimum number of transactions that must be allowed into the
  522. # ledger at the minimum required fee before the required fee
  523. # escalates. Default: 5.
  524. #
  525. # minimum_txn_in_ledger_standalone = <number>
  526. #
  527. # Like minimum_txn_in_ledger when rippled is running in standalone
  528. # mode. Default: 1000.
  529. #
  530. # target_txn_in_ledger = <number>
  531. #
  532. # Number of transactions allowed into the ledger at the minimum
  533. # required fee that the queue will "work toward" as long as
  534. # consensus stays healthy. The limit will grow quickly until it
  535. # reaches or exceeds this number. After that the limit may still
  536. # change, but will stay above the target. If consensus is not
  537. # healthy, the limit will be clamped to this value or lower.
  538. # Default: 50.
  539. #
  540. # maximum_txn_in_ledger = <number>
  541. #
  542. # (Optional) Maximum number of transactions that will be allowed
  543. # into the ledger at the minimum required fee before the required
  544. # fee escalates. Default: no maximum.
  545. #
  546. # normal_consensus_increase_percent = <number>
  547. #
  548. # (Optional) When the ledger has more transactions than "expected",
  549. # and performance is humming along nicely, the expected ledger size
  550. # is updated to the previous ledger size plus this percentage.
  551. # Default: 20
  552. #
  553. # slow_consensus_decrease_percent = <number>
  554. #
  555. # (Optional) When consensus takes longer than appropriate, the
  556. # expected ledger size is updated to the minimum of the previous
  557. # ledger size or the "expected" ledger size minus this percentage.
  558. # Default: 50
  559. #
  560. # maximum_txn_per_account = <number>
  561. #
  562. # Maximum number of transactions that one account can have in the
  563. # queue at any given time. Default: 10.
  564. #
  565. # minimum_last_ledger_buffer = <number>
  566. #
  567. # If a transaction has a LastLedgerSequence, it must be at least
  568. # this much larger than the current open ledger sequence number.
  569. # Default: 2.
  570. #
  571. # zero_basefee_transaction_feelevel = <number>
  572. #
  573. # So we don't deal with infinite fee levels, treat any transaction
  574. # with a 0 base fee (ie. SetRegularKey password recovery) as
  575. # having this fee level.
  576. # Default: 256000.
  577. #
  578. #
  579. #-------------------------------------------------------------------------------
  580. #
  581. # 3. Ripple Protocol
  582. #
  583. #-------------------
  584. #
  585. # These settings affect the behavior of the server instance with respect
  586. # to Ripple payment protocol level activities such as validating and
  587. # closing ledgers or adjusting fees in response to server overloads.
  588. #
  589. #
  590. #
  591. # [node_size]
  592. #
  593. # Tunes the servers based on the expected load and available memory. Legal
  594. # sizes are "tiny", "small", "medium", "large", and "huge". We recommend
  595. # you start at the default and raise the setting if you have extra memory.
  596. # The default is "tiny".
  597. #
  598. #
  599. #
  600. # [ledger_history]
  601. #
  602. # The number of past ledgers to acquire on server startup and the minimum to
  603. # maintain while running.
  604. #
  605. # To serve clients, servers need historical ledger data. Servers that don't
  606. # need to serve clients can set this to "none". Servers that want complete
  607. # history can set this to "full".
  608. #
  609. # This must be less than or equal to online_delete (if online_delete is used)
  610. #
  611. # The default is: 256
  612. #
  613. #
  614. #
  615. # [fetch_depth]
  616. #
  617. # The number of past ledgers to serve to other peers that request historical
  618. # ledger data (or "full" for no limit).
  619. #
  620. # Servers that require low latency and high local performance may wish to
  621. # restrict the historical ledgers they are willing to serve. Setting this
  622. # below 32 can harm network stability as servers require easy access to
  623. # recent history to stay in sync. Values below 128 are not recommended.
  624. #
  625. # The default is: full
  626. #
  627. #
  628. #
  629. # [validation_seed]
  630. #
  631. # To perform validation, this section should contain either a validation seed
  632. # or key. The validation seed is used to generate the validation
  633. # public/private key pair. To obtain a validation seed, use the
  634. # validation_create command.
  635. #
  636. # Examples: RASH BUSH MILK LOOK BAD BRIM AVID GAFF BAIT ROT POD LOVE
  637. # shfArahZT9Q9ckTf3s1psJ7C7qzVN
  638. #
  639. #
  640. #
  641. # [validator_token]
  642. #
  643. # This is an alternative to [validation_seed] that allows rippled to perform
  644. # validation without having to store the validator keys on the network
  645. # connected server. The field should contain a single token in the form of a
  646. # base64-encoded blob.
  647. # An external tool is available for generating validator keys and tokens.
  648. #
  649. #
  650. #
  651. # [validator_key_revocation]
  652. #
  653. # If a validator's secret key has been compromised, a revocation must be
  654. # generated and added to this field. The revocation notifies peers that it is
  655. # no longer safe to trust the revoked key. The field should contain a single
  656. # revocation in the form of a base64-encoded blob.
  657. # An external tool is available for generating and revoking validator keys.
  658. #
  659. #
  660. #
  661. # [validators_file]
  662. #
  663. # Path or name of a file that determines the nodes to always accept as validators.
  664. #
  665. # The contents of the file should include a [validators] and/or
  666. # [validator_list_sites] and [validator_list_keys] entries.
  667. # [validators] should be followed by a list of validation public keys of
  668. # nodes, one per line.
  669. # [validator_list_sites] should be followed by a list of URIs each serving a
  670. # list of recommended validators.
  671. # [validator_list_keys] should be followed by a list of keys belonging to
  672. # trusted validator list publishers. Validator lists fetched from configured
  673. # sites will only be considered if the list is accompanied by a valid
  674. # signature from a trusted publisher key.
  675. #
  676. # Specify the file by its name or path.
  677. # Unless an absolute path is specified, it will be considered relative to
  678. # the folder in which the rippled.cfg file is located.
  679. #
  680. # Examples:
  681. # /home/ripple/validators.txt
  682. # C:/home/ripple/validators.txt
  683. #
  684. # Example content:
  685. # [validators]
  686. # n949f75evCHwgyP4fPVgaHqNHxUVN15PsJEZ3B3HnXPcPjcZAoy7
  687. # n9MD5h24qrQqiyBC8aeqqCWvpiBiYQ3jxSr91uiDvmrkyHRdYLUj
  688. # n9L81uNCaPgtUJfaHh89gmdvXKAmSt5Gdsw2g1iPWaPkAHW5Nm4C
  689. # n9KiYM9CgngLvtRCQHZwgC2gjpdaZcCcbt3VboxiNFcKuwFVujzS
  690. # n9LdgEtkmGB9E2h3K4Vp7iGUaKuq23Zr32ehxiU8FWY7xoxbWTSA
  691. #
  692. #
  693. #
  694. # [path_search]
  695. # When searching for paths, the default search aggressiveness. This can take
  696. # exponentially more resources as the size is increased.
  697. #
  698. # The default is: 7
  699. #
  700. # [path_search_fast]
  701. # [path_search_max]
  702. # When searching for paths, the minimum and maximum search aggressiveness.
  703. #
  704. # If you do not need pathfinding, you can set path_search_max to zero to
  705. # disable it and avoid some expensive bookkeeping.
  706. #
  707. # The default for 'path_search_fast' is 2. The default for 'path_search_max' is 10.
  708. #
  709. # [path_search_old]
  710. #
  711. # For clients that use the legacy path finding interfaces, the search
  712. # aggressiveness to use. The default is 7.
  713. #
  714. #
  715. #
  716. # [fee_default]
  717. #
  718. # Sets the base cost of a transaction in drops. Used when the server has
  719. # no other source of fee information, such as signing transactions offline.
  720. #
  721. #
  722. #
  723. # [workers]
  724. #
  725. # Configures the number of threads for processing work submitted by peers
  726. # and clients. If not specified, then the value is automatically determined
  727. # by factors including the number of system processors and whether this
  728. # node is a validator.
  729. #
  730. #
  731. #-------------------------------------------------------------------------------
  732. #
  733. # 4. HTTPS Client
  734. #
  735. #----------------
  736. #
  737. # The rippled server instance uses HTTPS GET requests in a variety of
  738. # circumstances, including but not limited to contacting trusted domains to
  739. # fetch information such as mapping an email address to a Ripple Payment
  740. # Network address.
  741. #
  742. # [ssl_verify]
  743. #
  744. # 0 or 1.
  745. #
  746. # 0. HTTPS client connections will not verify certificates.
  747. # 1. Certificates will be checked for HTTPS client connections.
  748. #
  749. # If not specified, this parameter defaults to 1.
  750. #
  751. #
  752. #
  753. # [ssl_verify_file]
  754. #
  755. # <pathname>
  756. #
  757. # A file system path leading to the certificate verification file for
  758. # HTTPS client requests.
  759. #
  760. #
  761. #
  762. # [ssl_verify_dir]
  763. #
  764. # <pathname>
  765. #
  766. #
  767. # A file system path leading to a file or directory containing the root
  768. # certificates that the server will accept for verifying HTTP servers.
  769. # Used only for outbound HTTPS client connections.
  770. #
  771. #
  772. #
  773. #-------------------------------------------------------------------------------
  774. #
  775. # 5. Database
  776. #
  777. #------------
  778. #
  779. # rippled creates 4 SQLite database to hold bookkeeping information
  780. # about transactions, local credentials, and various other things.
  781. # It also creates the NodeDB, which holds all the objects that
  782. # make up the current and historical ledgers.
  783. #
  784. # The size of the NodeDB grows in proportion to the amount of new data and the
  785. # amount of historical data (a configurable setting) so the performance of the
  786. # underlying storage media where the NodeDB is placed can significantly affect
  787. # the performance of the server.
  788. #
  789. # Partial pathnames will be considered relative to the location of
  790. # the rippled.cfg file.
  791. #
  792. # [node_db] Settings for the Node Database (required)
  793. #
  794. # Format (without spaces):
  795. # One or more lines of case-insensitive key / value pairs:
  796. # <key> '=' <value>
  797. # ...
  798. #
  799. # Example:
  800. # type=nudb
  801. # path=db/nudb
  802. #
  803. # The "type" field must be present and controls the choice of backend:
  804. #
  805. # type = NuDB
  806. #
  807. # NuDB is a high-performance database written by Ripple Labs and optimized
  808. # for rippled and solid-state drives.
  809. #
  810. # NuDB maintains its high speed regardless of the amount of history
  811. # stored. Online delete may be selected, but is not required. NuDB is
  812. # available on all platforms that rippled runs on.
  813. #
  814. # type = RocksDB
  815. #
  816. # RocksDB is an open-source, general-purpose key/value store - see
  817. # http://rocksdb.org/ for more details.
  818. #
  819. # RocksDB is an alternative backend for systems that don't use solid-state
  820. # drives. Because RocksDB's performance degrades as it stores more data,
  821. # keeping full history is not advised, and using online delete is
  822. # recommended. RocksDB is not available on Windows.
  823. #
  824. # The RocksDB backend also provides these optional parameters:
  825. #
  826. # compression 0 for none, 1 for Snappy compression
  827. #
  828. #
  829. #
  830. # Required keys:
  831. # path Location to store the database (all types)
  832. #
  833. # Optional keys:
  834. #
  835. # These keys are possible for any type of backend:
  836. #
  837. # online_delete Minimum value of 256. Enable automatic purging
  838. # of older ledger information. Maintain at least this
  839. # number of ledger records online. Must be greater
  840. # than or equal to ledger_history.
  841. #
  842. # advisory_delete 0 for disabled, 1 for enabled. If set, then
  843. # require administrative RPC call "can_delete"
  844. # to enable online deletion of ledger records.
  845. #
  846. # earliest_seq The default is 32570 to match the XRP ledger
  847. # network's earliest allowed sequence. Alternate
  848. # networks may set this value. Minimum value of 1.
  849. #
  850. # Notes:
  851. # The 'node_db' entry configures the primary, persistent storage.
  852. #
  853. # The 'import_db' is used with the '--import' command line option to
  854. # migrate the specified database into the current database given
  855. # in the [node_db] section.
  856. #
  857. # [import_db] Settings for performing a one-time import (optional)
  858. # [database_path] Path to the book-keeping databases.
  859. #
  860. # [shard_db] Settings for the Shard Database (optional)
  861. #
  862. # Format (without spaces):
  863. # One or more lines of case-insensitive key / value pairs:
  864. # <key> '=' <value>
  865. # ...
  866. #
  867. # Example:
  868. # type=nudb
  869. # path=db/shards/nudb
  870. #
  871. # The "type" field must be present and controls the choice of backend:
  872. #
  873. # type = NuDB
  874. # NuDB is recommended for shards.
  875. #
  876. # type = RocksDB
  877. #
  878. # The RocksDB backend also provides these optional parameters:
  879. #
  880. # compression 0 for none, 1 for Snappy compression
  881. #
  882. # Required keys:
  883. # path Location to store the database (all types)
  884. #
  885. # max_size_gb Maximum disk space the database will utilize (in gigabytes)
  886. #
  887. #
  888. # There are 4 bookkeeping SQLite database that the server creates and
  889. # maintains. If you omit this configuration setting, it will default to
  890. # creating a directory called "db" located in the same place as your
  891. # rippled.cfg file. Partial pathnames will be considered relative to
  892. # the location of the rippled executable.
  893. #
  894. #
  895. #
  896. #
  897. #-------------------------------------------------------------------------------
  898. #
  899. # 6. Diagnostics
  900. #
  901. #---------------
  902. #
  903. # These settings are designed to help server administrators diagnose
  904. # problems, and obtain detailed information about the activities being
  905. # performed by the rippled process.
  906. #
  907. #
  908. #
  909. # [debug_logfile]
  910. #
  911. # Specifies where a debug logfile is kept. By default, no debug log is kept.
  912. # Unless absolute, the path is relative the directory containing this file.
  913. #
  914. # Example: debug.log
  915. #
  916. #
  917. #
  918. # [insight]
  919. #
  920. # Configuration parameters for the Beast. Insight stats collection module.
  921. #
  922. # Insight is a module that collects information from the areas of rippled
  923. # that have instrumentation. The configuration parameters control where the
  924. # collection metrics are sent. The parameters are expressed as key = value
  925. # pairs with no white space. The main parameter is the choice of server:
  926. #
  927. # "server"
  928. #
  929. # Choice of server to send metrics to. Currently the only choice is
  930. # "statsd" which sends UDP packets to a StatsD daemon, which must be
  931. # running while rippled is running. More information on StatsD is
  932. # available here:
  933. # https://github.com/b/statsd_spec
  934. #
  935. # When server=statsd, these additional keys are used:
  936. #
  937. # "address" The UDP address and port of the listening StatsD server,
  938. # in the format, n.n.n.n:port.
  939. #
  940. # "prefix" A string prepended to each collected metric. This is used
  941. # to distinguish between different running instances of rippled.
  942. #
  943. # If this section is missing, or the server type is unspecified or unknown,
  944. # statistics are not collected or reported.
  945. #
  946. # Example:
  947. #
  948. # [insight]
  949. # server=statsd
  950. # address=192.168.0.95:4201
  951. # prefix=my_validator
  952. #
  953. # [perf]
  954. #
  955. # Configuration of performance logging. If enabled, write Json-formatted
  956. # performance-oriented data periodically to a distinct log file.
  957. #
  958. # "perf_log" A string specifying the pathname of the performance log
  959. # file. A relative pathname will log relative to the
  960. # configuration directory. Required to enable
  961. # performance logging.
  962. #
  963. # "log_interval" Integer value for number of seconds between writing
  964. # to performance log. Default 1.
  965. #
  966. # Example:
  967. # [perf]
  968. # perf_log=/var/log/rippled/perf.log
  969. # log_interval=2
  970. #
  971. #-------------------------------------------------------------------------------
  972. #
  973. # 7. Voting
  974. #
  975. #----------
  976. #
  977. # The vote settings configure settings for the entire Ripple network.
  978. # While a single instance of rippled cannot unilaterally enforce network-wide
  979. # settings, these choices become part of the instance's vote during the
  980. # consensus process for each voting ledger.
  981. #
  982. # [voting]
  983. #
  984. # A set of key/value pair parameters used during voting ledgers.
  985. #
  986. # reference_fee = <drops>
  987. #
  988. # The cost of the reference transaction fee, specified in drops.
  989. # The reference transaction is the simplest form of transaction.
  990. # It represents an XRP payment between two parties.
  991. #
  992. # If this parameter is unspecified, rippled will use an internal
  993. # default. Don't change this without understanding the consequences.
  994. #
  995. # Example:
  996. # reference_fee = 10 # 10 drops
  997. #
  998. # account_reserve = <drops>
  999. #
  1000. # The account reserve requirement is specified in drops. The portion of an
  1001. # account's XRP balance that is at or below the reserve may only be
  1002. # spent on transaction fees, and not transferred out of the account.
  1003. #
  1004. # If this parameter is unspecified, rippled will use an internal
  1005. # default. Don't change this without understanding the consequences.
  1006. #
  1007. # Example:
  1008. # account_reserve = 20000000 # 20 XRP
  1009. #
  1010. # owner_reserve = <drops>
  1011. #
  1012. # The owner reserve is the amount of XRP reserved in the account for
  1013. # each ledger item owned by the account. Ledger items an account may
  1014. # own include trust lines, open orders, and tickets.
  1015. #
  1016. # If this parameter is unspecified, rippled will use an internal
  1017. # default. Don't change this without understanding the consequences.
  1018. #
  1019. # Example:
  1020. # owner_reserve = 5000000 # 5 XRP
  1021. #
  1022. #-------------------------------------------------------------------------------
  1023. #
  1024. # 8. Misc Settings
  1025. #
  1026. #----------
  1027. #
  1028. # [signing_support]
  1029. #
  1030. # Specifies whether the server will accept "sign" and "sign_for" commands
  1031. # from remote users. Even if the commands are sent over a secure protocol
  1032. # like secure websocket, this should generally be discouraged, because it
  1033. # requires sending the secret to use for signing to the server. In order
  1034. # to sign transactions, users should prefer to use a standalone signing
  1035. # tool instead.
  1036. #
  1037. # This flag has no effect on the "sign" and "sign_for" command line options
  1038. # that rippled makes available.
  1039. #
  1040. # The default value of this field is "false"
  1041. #
  1042. # Example:
  1043. #
  1044. # [signing_support]
  1045. # true
  1046. #
  1047. # [crawl]
  1048. #
  1049. # List of options to control what data is reported through the /crawl endpoint
  1050. # See https://developers.ripple.com/peer-protocol.html#peer-crawler
  1051. #
  1052. # <flag>
  1053. #
  1054. # Enable or disable access to /crawl requests. Default is '1'
  1055. #
  1056. # overlay = <flag>
  1057. #
  1058. # Report information about peers this server is connected to, similar
  1059. # to the "peers" RPC API. Default is '1'.
  1060. #
  1061. # server = <flag>
  1062. #
  1063. # Report information about the local server, similar to the "server_state"
  1064. # RPC API. Default is '1'.
  1065. #
  1066. # counts = <flag>
  1067. #
  1068. # Report information about the local server health counters, similar to
  1069. # the "get_counts" RPC API. Default is '0'.
  1070. #
  1071. # unl = <flag>
  1072. #
  1073. # Report information about the local server's validator lists, similar to
  1074. # the "validators" and "validator_list_sites" RPC APIs. Default is '1'.
  1075. #
  1076. # Example:
  1077. #
  1078. # [crawl]
  1079. # 0
  1080. #
  1081. # [crawl]
  1082. # overlay = 1 # report peer overlay info
  1083. # server = 1 # report local server info
  1084. # counts = 0 # do not report server counts
  1085. # unl = 1 # report server validator lists
  1086. #
  1087. #-------------------------------------------------------------------------------
  1088. #
  1089. # 9. Example Settings
  1090. #
  1091. #--------------------
  1092. #
  1093. # Administrators can use these values as a starting point for configuring
  1094. # their instance of rippled, but each value should be checked to make sure
  1095. # it meets the business requirements for the organization.
  1096. #
  1097. # Server
  1098. #
  1099. # These example configuration settings create these ports:
  1100. #
  1101. # "peer"
  1102. #
  1103. # Peer protocol open to everyone. This is required to accept
  1104. # incoming rippled connections. This does not affect automatic
  1105. # or manual outgoing Peer protocol connections.
  1106. #
  1107. # "rpc"
  1108. #
  1109. # Administrative RPC commands over HTTPS, when originating from
  1110. # the same machine (via the loopback adapter at 127.0.0.1).
  1111. #
  1112. # "wss_admin"
  1113. #
  1114. # Admin level API commands over Secure Websockets, when originating
  1115. # from the same machine (via the loopback adapter at 127.0.0.1).
  1116. #
  1117. # This port is commented out but can be enabled by removing
  1118. # the '#' from each corresponding line including the entry under [server]
  1119. #
  1120. # "wss_public"
  1121. #
  1122. # Guest level API commands over Secure Websockets, open to everyone.
  1123. #
  1124. # For HTTPS and Secure Websockets ports, if no certificate and key file
  1125. # are specified then a self-signed certificate will be generated on startup.
  1126. # If you have a certificate and key file, uncomment the corresponding lines
  1127. # and ensure the paths to the files are correct.
  1128. #
  1129. # NOTE
  1130. #
  1131. # To accept connections on well known ports such as 80 (HTTP) or
  1132. # 443 (HTTPS), most operating systems will require rippled to
  1133. # run with administrator privileges, or else rippled will not start.
  1134.  
  1135. [server]
  1136. port_rpc_admin_local
  1137. port_rpc_public
  1138. port_peer
  1139. port_ws_admin_local
  1140. #port_ws_public
  1141. #ssl_key = /etc/ssl/private/server.key
  1142. #ssl_cert = /etc/ssl/certs/server.crt
  1143.  
  1144. [port_rpc_admin_local]
  1145. port = 5005
  1146. ip = 127.0.0.1
  1147. admin = 127.0.0.1
  1148. protocol = http
  1149.  
  1150. [port_rpc_public]
  1151. port = 8082
  1152. ip = 0.0.0.0
  1153. protocol = http
  1154.  
  1155. [port_peer]
  1156. port = 51235
  1157. ip = 0.0.0.0
  1158. protocol = peer
  1159.  
  1160. [port_ws_admin_local]
  1161. port = 6006
  1162. ip = 127.0.0.1
  1163. admin = 127.0.0.1
  1164. protocol = ws
  1165.  
  1166. #[port_ws_public]
  1167. #port = 6005
  1168. #ip = 127.0.0.1
  1169. #protocol = wss
  1170.  
  1171. #-------------------------------------------------------------------------------
  1172.  
  1173. [node_size]
  1174. small
  1175.  
  1176. # This is primary persistent datastore for rippled. This includes transaction
  1177. # metadata, account states, and ledger headers. Helpful information can be
  1178. # found here: https://ripple.com/wiki/NodeBackEnd
  1179. # delete old ledgers while maintaining at least 2000. Do not require an
  1180. # external administrative command to initiate deletion.
  1181. [node_db]
  1182. type=RocksDB
  1183. path=/var/lib/rippled/db/rocksdb
  1184. open_files=2000
  1185. filter_bits=12
  1186. cache_mb=256
  1187. file_size_mb=8
  1188. file_size_mult=2
  1189. online_delete=2000
  1190. advisory_delete=0
  1191.  
  1192. # This is the persistent datastore for shards. It is important for the health
  1193. # of the ripple network that rippled operators shard as much as practical.
  1194. # NuDB requires SSD storage. Helpful information can be found here
  1195. # https://ripple.com/build/history-sharding
  1196. #[shard_db]
  1197. #type=NuDB
  1198. #path=/var/lib/rippled/db/shards/nudb
  1199. #max_size_gb=500
  1200.  
  1201. [database_path]
  1202. /var/lib/rippled/db
  1203.  
  1204. # This needs to be an absolute directory reference, not a relative one.
  1205. # Modify this value as required.
  1206. [debug_logfile]
  1207. /var/log/rippled/debug.log
  1208.  
  1209. [sntp_servers]
  1210. time.windows.com
  1211. time.apple.com
  1212. time.nist.gov
  1213. pool.ntp.org
  1214.  
  1215. # To use the XRP test network (see https://ripple.com/build/xrp-test-net/),
  1216. # use the following [ips] section:
  1217. [ips]
  1218. r.altnet.rippletest.net 51235
  1219.  
  1220. # File containing trusted validator keys or validator list publishers.
  1221. # Unless an absolute path is specified, it will be considered relative to the
  1222. # folder in which the rippled.cfg file is located.
  1223. [validators_file]
  1224. validators.txt
  1225.  
  1226. [signing_support]
  1227. true
  1228.  
  1229. # Turn down default logging to save disk space in the long run.
  1230. # Valid values here are trace, debug, info, warning, error, and fatal
  1231. [rpc_startup]
  1232. { "command": "log_level", "severity": "warning" }
  1233.  
  1234. # If ssl_verify is 1, certificates will be validated.
  1235. # To allow the use of self-signed certificates for development or internal use,
  1236. # set to ssl_verify to 0.
  1237. [ssl_verify]
  1238. 1
Add Comment
Please, Sign In to add comment