embark/dapps/templates/demo/config/communication.js

47 lines
1.3 KiB
JavaScript
Raw Normal View History

2018-06-12 16:59:31 +00:00
module.exports = {
2018-08-21 18:44:58 +00:00
// default applies to all environments
2018-06-12 16:59:31 +00:00
default: {
enabled: true,
provider: "whisper", // Communication provider. Currently, Embark only supports whisper
available_providers: ["whisper"], // Array of available providers
2018-08-21 18:44:58 +00:00
},
// default environment, merges with the settings in default
// assumed to be the intended environment by `embark run`
development: {
2018-06-12 16:59:31 +00:00
connection: {
host: "localhost", // Host of the blockchain node
port: 8546, // Port of the blockchain node
2018-06-18 19:59:48 +00:00
type: "ws" // Type of connection (ws or rpc)
2018-06-12 16:59:31 +00:00
}
2018-08-23 19:53:33 +00:00
},
2018-08-21 18:44:58 +00:00
// merges with the settings in default
// used with "embark run privatenet"
privatenet: {
},
// merges with the settings in default
// used with "embark run testnet"
testnet: {
},
// merges with the settings in default
// used with "embark run livenet"
livenet: {
},
// you can name an environment with specific settings and then specify with
// "embark run custom_name"
//custom_name: {
//}
// Use this section when you need a specific symmetric or private keys in whisper
/*
,keys: {
symmetricKey: "your_symmetric_key",// Symmetric key for message decryption
privateKey: "your_private_key" // Private Key to be used as a signing key and for message decryption
}
*/
};