/ config / storage.js
storage.js
 1  module.exports = {
 2    // default applies to all environments
 3    default: {
 4      enabled: true,
 5      ipfs_bin: 'ipfs',
 6      provider: 'ipfs',
 7      available_providers: ['ipfs'],
 8      upload: {
 9        host: 'localhost',
10        port: 5001,
11      },
12      dappConnection: [
13        {
14          provider: 'ipfs',
15          host: 'localhost',
16          port: 5001,
17          getUrl: 'http://localhost:8080/ipfs/',
18        },
19      ],
20      // Configuration to start Swarm in the same terminal as `embark run`
21      /* ,account: {
22        address: "YOUR_ACCOUNT_ADDRESS", // Address of account accessing Swarm
23        password: "PATH/TO/PASSWORD/FILE" // File containing the password of the account
24      },
25      swarmPath: "PATH/TO/SWARM/EXECUTABLE" // Path to swarm executable (default: swarm) */
26    },
27  
28    // default environment, merges with the settings in default
29    // assumed to be the intended environment by `embark run`
30    development: {
31      enabled: true,
32      upload: {
33        provider: 'ipfs',
34        host: 'localhost',
35        port: 5001,
36        getUrl: 'http://localhost:8080/ipfs/',
37      },
38    },
39  
40    // merges with the settings in default
41    // used with "embark run privatenet"
42    privatenet: {},
43  
44    // merges with the settings in default
45    // used with "embark run testnet"
46    testnet: {
47      enabled: true,
48      ipfs_bin: 'ipfs',
49      provider: 'ipfs',
50      available_providers: ['ipfs'],
51      upload: {
52        host: 'localhost',
53        port: 5001,
54      },
55      dappConnection: [
56        {
57          provider: 'ipfs',
58          protocol: 'https',
59          host: 'ipfs.infura.io',
60          port: 5001,
61          getUrl: 'https://ipfs.infura.io/ipfs/',
62        },
63      ],
64    },
65  
66    // merges with the settings in default
67    // used with "embark run livenet"
68    livenet: {},
69  
70    // you can name an environment with specific settings and then specify with
71    // "embark run custom_name"
72    // custom_name: {
73    // }
74  }