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

59 lines
1.4 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,
ipfs_bin: "ipfs",
available_providers: ["ipfs"],
upload: {
provider: "ipfs",
2018-06-12 16:59:31 +00:00
host: "localhost",
port: 5001
},
dappConnection: [
2018-06-18 20:04:05 +00:00
{
provider:"ipfs",
host: "localhost",
port: 5001,
getUrl: "http://localhost:8080/ipfs/"
}
2018-06-12 16:59:31 +00:00
]
2018-06-18 20:10:31 +00:00
// Configuration to start Swarm in the same terminal as `embark run`
/*,account: {
address: "YOUR_ACCOUNT_ADDRESS", // Address of account accessing Swarm
password: "PATH/TO/PASSWORD/FILE" // File containing the password of the account
},
swarmPath: "PATH/TO/SWARM/EXECUTABLE" // Path to swarm executable (default: swarm)*/
2018-06-12 16:59:31 +00:00
},
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`
2018-06-12 16:59:31 +00:00
development: {
upload: {
provider: "ipfs",
2018-06-12 16:59:31 +00:00
host: "localhost",
port: 5001,
getUrl: "http://localhost:8080/ipfs/"
}
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: {
//}
2018-06-18 20:04:05 +00:00
};