Преглед изворни кода

Update reference config files.

parazyd пре 4 година
родитељ
комит
b82a485137
4 измењених фајлова са 60 додато и 33 уклоњено
  1. 34 15
      example/config/cashierd.toml
  2. 18 15
      example/config/darkfid.toml
  3. 8 2
      example/config/drk.toml
  4. 0 1
      example/config/gatewayd.toml

+ 34 - 15
example/config/cashierd.toml

@@ -1,32 +1,51 @@
-rpc_url = "127.0.0.1:9000"
-gateway_url = "127.0.0.1:3333"
-gateway_subscriber_url = "127.0.0.1:4444"
-log_path = "/tmp/cashierd.log"
-password = "TEST_PASSWORD"
-client_password = "TEST_PASSWORD"
+## cashierd configuration file
+##
+## Please make sure you go through all the settings so you can configre
+## your daemon properly.
+
+# The endpoint where cashierd will bind its RPC socket
+listen_url = "127.0.0.1:9000"
 
 # Whether to listen with TLS or plain TCP
-use_tls = false
+serve_tls = false
 
-# Path to DER-formatted PKCS#12 archive.
+# Path to DER-formatted PKCS#12 archive. (Unused if serve_tls=false)
 # This can be created using openssl:
 # openssl pkcs12 -export -out identity.pfx -inkey key.pem -in cert.pem -certfile chain_certs.pem
 tls_identity_path = "~/.config/darkfi/darkfid_identity.pfx"
 
-# Password for the created identity
+# Password for the created TLS identity. (Unused if serve_tls=false)
 tls_identity_password = "FOOBAR"
 
-[[networks]]
-name = "sol"
-blockchain = "testnet"
+gateway_url = "127.0.0.1:3333"
+gateway_subscriber_url = "127.0.0.1:4444"
 
-[[networks]]
-name = "btc"
-blockchain = "testnet"
+# Path to mint.params
+mint_params = "~/.config/darkfi/cashierd_mint.params"
 
+# Path to spend.params
+spend_params = "~/.config/darkfi/cashierd_spend.params"
 
+# Path to cashierd wallet
+cashier_wallet_path = "~/.config/darkfi/cashier_wallet.db"
 
+# Password for cashierd wallet
+cashier_wallet_password = "TEST_PASSWORD"
 
+# Path to client wallet
+client_wallet_path = "~/.config/darkfi/cashier_client_wallet.db"
 
+# Password for client wallet
+client_wallet_password = "TEST_PASSWORD"
 
+# Path to database
+database_path = "~/.config/darkfi/cashier_database.db"
 
+# The configured networks to use.
+[[networks]]
+name = "sol"
+blockchain = "testnet"
+
+[[networks]]
+name = "btc"
+blockchain = "testnet"

+ 18 - 15
example/config/darkfid.toml

@@ -1,28 +1,31 @@
-connect_url = "127.0.0.1:3333"
-subscriber_url = "127.0.0.1:4444"
+## darkfid configuration file
+##
+## Please make sure you go through all the settings so you can configure
+## your daemon properly.
 
-# The RPC endpoint for a selected cashier
-cashier_url = "127.0.0.1:9000"
-
-# The URL where darkfid will bind it's RPC socket
-rpc_url = "127.0.0.1:8000"
+# The address where darkfid should bind its RPC socket
+listen_address = "127.0.0.1:8000"
 
 # Whether to listen with TLS or plain TCP
-use_tls = false
+serve_tls = false
 
-# Path to DER-formatted PKCS#12 archive.
+# Path to DER-formatted PKCS#12 archive. (Unused if serve_tls=false)
 # This can be created using openssl:
 # openssl pkcs12 -export -out identity.pfx -inkey key.pem -in cert.pem -certfile chain_certs.pem
 tls_identity_path = "~/.config/darkfi/darkfid_identity.pfx"
 
-# Password for the created identity
+# Password for the created TLS identity. (Unused if serve_tls=false)
 tls_identity_password = "FOOBAR"
 
-# Path to darkfid log file
-log_path = "/tmp/darkfid_service_daemon.log"
+# The RPC endpoint for a selected cashier
+cashier_url = "tcp://127.0.0.1:9000"
+#cashier_url = "tls://127.0.0.1:9000"
+
+# Path to the client database
+database_path = "~/.config/darkfi/darkfid_client.db"
 
 # Path to the wallet database
-wallet_path = "~/.config/darkfi/walletdb.db"
+wallet_path = "~/.config/darkfi/darkfid_wallet.db"
 
-# Wallet password
-password = "TEST_PASSWORD"
+# The wallet password
+wallet_password = "TEST_PASSWORD"

+ 8 - 2
example/config/drk.toml

@@ -1,2 +1,8 @@
-rpc_url = "127.0.0.1:8000"
-log_path = "/tmp/drk_cli.log"
+## drk client configuration file
+##
+## Please make sure you go through all the settings so you can configure
+## your client properly.
+
+# The RPC endpoint where darkfid is listening on
+darkfid_url = "tcp://127.0.0.1:8000"
+#darkfid_url = "tls://127.0.0.1:8000"

+ 0 - 1
example/config/gatewayd.toml

@@ -1,3 +1,2 @@
 connect_url = "127.0.0.1:3333"
 publisher_url = "127.0.0.1:4444"
-log_path = "/tmp/gatewayd.log"