Merge pull request #14 from 67P/feature/5-public_ipfs

Use public IPFS node, improve config
This commit was merged in pull request #14.
This commit is contained in:
2017-05-20 18:14:44 +02:00
committed by GitHub
+13 -5
View File
@@ -5,6 +5,7 @@ module.exports = function(environment) {
environment: environment, environment: environment,
rootURL: '/', rootURL: '/',
locationType: 'auto', locationType: 'auto',
EmberENV: { EmberENV: {
FEATURES: { FEATURES: {
// Here you can enable experimental features on an ember canary build // Here you can enable experimental features on an ember canary build
@@ -29,13 +30,18 @@ module.exports = function(environment) {
}] }]
] ]
}, },
contractMetadata: {}, contractMetadata: {},
web3ProviderUrl: 'https://parity.kosmos.org:8545',
ipfs: { ipfs: {
host: 'localhost', host: 'ipfs.kosmos.org',
port: '5001', port: '5444',
protocol: 'http' protocol: 'http'
} }
}; };
if (process.env.KREDITS_CONTRACT_ADDR) { if (process.env.KREDITS_CONTRACT_ADDR) {
ENV.contractMetadata['Kredits'] = { address: process.env.KREDITS_CONTRACT_ADDR }; ENV.contractMetadata['Kredits'] = { address: process.env.KREDITS_CONTRACT_ADDR };
} }
@@ -44,8 +50,6 @@ module.exports = function(environment) {
} }
if (process.env.WEB3_PROVIDER_URL) { if (process.env.WEB3_PROVIDER_URL) {
ENV.web3ProviderUrl = process.env.WEB3_PROVIDER_URL; ENV.web3ProviderUrl = process.env.WEB3_PROVIDER_URL;
} else {
ENV.web3ProviderUrl = 'https://parity.kosmos.org:8545';
} }
if (environment === 'development') { if (environment === 'development') {
@@ -54,6 +58,11 @@ module.exports = function(environment) {
// ENV.APP.LOG_TRANSITIONS = true; // ENV.APP.LOG_TRANSITIONS = true;
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true; // ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
// ENV.APP.LOG_VIEW_LOOKUPS = true; // ENV.APP.LOG_VIEW_LOOKUPS = true;
ENV.ipfs = {
host: 'localhost',
port: '5001',
protocol: 'http'
};
} }
if (environment === 'test') { if (environment === 'test') {
@@ -68,7 +77,6 @@ module.exports = function(environment) {
} }
if (environment === 'production') { if (environment === 'production') {
// production conifig
} }
return ENV; return ENV;