浏览代码

make a copy from the config files in example to run cashier and gatewayd
locally

ghassmo 4 年之前
父节点
当前提交
552bc7d982

+ 57 - 0
example/config_local/cashierd.toml

@@ -0,0 +1,57 @@
+## 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
+rpc_listen_address = "127.0.0.1:9000"
+
+# Whether to listen with TLS or plain TCP
+serve_tls = false
+
+# 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/localdata/cashierd_identity.pfx"
+
+# Password for the created TLS identity. (Unused if serve_tls=false)
+tls_identity_password = "FOOBAR"
+
+# The endpoint to a gatewayd protocol API
+gateway_protocol_url = "tcp://127.0.0.1:3333"
+
+# The endpoint to a gatewayd publisher API
+gateway_publisher_url = "tcp://127.0.0.1:4444"
+
+# Path to mint.params
+mint_params_path = "/usr/local/share/darkfi/mint.params"
+
+# Path to spend.params
+spend_params_path = "/usr/local/share/darkfi/spend.params"
+
+# Path to cashierd wallet
+cashier_wallet_path = "~/.config/darkfi/localdata/cashier_wallet.db"
+
+# Password for cashierd wallet
+cashier_wallet_password = "TEST_PASSWORD"
+
+# Path to client wallet
+client_wallet_path = "~/.config/darkfi/localdata/cashier_client_wallet.db"
+
+# Password for client wallet
+client_wallet_password = "TEST_PASSWORD"
+
+# Path to database
+database_path = "~/.config/darkfi/localdata/cashier_database.db"
+
+# The configured networks to use.
+[[networks]]
+name = "sol"
+blockchain = "devnet"
+# The path to a secret key (can be created with solana-keygen new --no-bip39-passphrase)
+keypair = ""
+
+[[networks]]
+name = "btc"
+blockchain = "testnet"
+keypair = ""

+ 51 - 0
example/config_local/darkfid.toml

@@ -0,0 +1,51 @@
+## darkfid configuration file
+##
+## Please make sure you go through all the settings so you can configure
+## your daemon properly.
+
+# The address where darkfid should bind its RPC socket
+rpc_listen_address = "127.0.0.1:8000"
+
+# Whether to listen with TLS or plain TCP
+serve_tls = false
+
+# 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/localdata/darkfid_identity.pfx"
+
+# Password for the created TLS identity. (Unused if serve_tls=false)
+tls_identity_password = "FOOBAR"
+
+# The endpoint to a gatewayd protocol API
+gateway_protocol_url = "tcp://127.0.0.1:3333"
+
+# The endpoint to a gatewayd publisher API
+gateway_publisher_url = "tcp://127.0.0.1:4444"
+
+# Path to mint.params
+mint_params_path = "/usr/local/share/darkfi/mint.params"
+
+# Path to spend.params
+spend_params_path = "/usr/local/share/darkfi/spend.params"
+
+# Path to the client database
+database_path = "~/.config/darkfi/localdata/darkfid_client.db"
+
+# Path to the wallet database
+wallet_path = "~/.config/darkfi/localdata/darkfid_wallet.db"
+
+# The wallet password
+wallet_password = "TEST_PASSWORD"
+
+# The configured cashiers to use.
+[[cashiers]]
+
+# Cashier name
+name = ""
+
+# The RPC endpoint for a selected cashier
+rpc_url = ""
+
+# The selected cashier public key
+public_key = ""

+ 8 - 0
example/config_local/drk.toml

@@ -0,0 +1,8 @@
+## 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_rpc_url = "tcp://127.0.0.1:8000"
+#darkfid_rpc_url = "tls://127.0.0.1:8000"

+ 24 - 0
example/config_local/gatewayd.toml

@@ -0,0 +1,24 @@
+## gatewayd configuration file
+##
+## Please make sure you go through all the settings so you can configure
+## your daemon properly.
+
+# The endpoint where gatewayd will serve its protocol API
+protocol_listen_address = "127.0.0.1:3333"
+
+# The endpoint where gatewayd will serve its publisher API
+publisher_listen_address = "127.0.0.1:4444"
+
+# Whether to listen with TLS or plain TCP
+serve_tls = false
+
+# 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 -certfiles chain_certs.pem
+tls_identity_path = "~/.config/darkfi/localdata/gatewayd_identity.pfx"
+
+# Password for the created TLS identity. (Unused if serve_tls=false)
+tls_identity_password = "FOOBAR"
+
+# Path to database
+database_path = "~/.config/darkfi/localdata/gatewayd.db"