Răsfoiți Sursa

update config examples

ghassmo 4 ani în urmă
părinte
comite
4ac97877e6
3 a modificat fișierele cu 18 adăugiri și 5 ștergeri
  1. 17 3
      example/config/cashierd.toml
  2. 1 1
      example/config/darkfid.toml
  3. 0 1
      src/cli/cli_config.rs

+ 17 - 3
example/config/cashierd.toml

@@ -1,18 +1,32 @@
-rpc_url = "127.0.0.1:7777"
+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"
 
+# Whether to listen with TLS or plain TCP
+use_tls = false
+
+# Path to DER-formatted PKCS#12 archive.
+# 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
+tls_identity_password = "FOOBAR"
+
 [[networks]]
-name = "btc"
+name = "sol"
 blockchain = "testnet"
 
 [[networks]]
-name = "sol"
+name = "btc"
 blockchain = "testnet"
 
 
 
 
+
+
+

+ 1 - 1
example/config/darkfid.toml

@@ -1,6 +1,6 @@
 connect_url = "127.0.0.1:3333"
 subscriber_url = "127.0.0.1:4444"
-cashier_url = "127.0.0.1:7777"
+cashier_url = "127.0.0.1:9000"
 # The URL where darkfid will bind it's RPC socket
 rpc_url = "127.0.0.1:8000"
 # Whether to listen with TLS or plain TCP

+ 0 - 1
src/cli/cli_config.rs

@@ -104,7 +104,6 @@ pub struct CashierdConfig {
     #[serde(rename = "password")]
     pub password: String,
 
-
     #[serde(rename = "use_tls")]
     pub use_tls: bool,