-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #335 from FleekHQ/giancarlo/changes-for-public-repo
Changes for repo renaming and make it public
- Loading branch information
Showing
7 changed files
with
94 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
DEV_DAEMON=false | ||
DAEMON_PATH=/path/to/daemon | ||
|
||
SPACE_SERVICES_URL= | ||
SPACE_BILLING_SERVICE_URL= | ||
REACT_APP_WS_AUTH_CHALLENGE_URL= | ||
|
||
REACT_APP_TORUS_NETWORK= | ||
REACT_APP_TORUS_GOOGLE_VERIFIER= | ||
REACT_APP_TORUS_TWITTER_VERIFIER= | ||
REACT_APP_TORUS_TWITTER_CLIENT_ID= | ||
REACT_APP_TORUS_TWITTER_AUTH_DOMAIN= | ||
REACT_APP_TORUS_PROXY_CONTRACT= | ||
REACT_APP_TORUS_PROVIDERS_REDIRECT_URL= | ||
REACT_APP_TORUS_GOOGLE_CLIENT_ID= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
const ApiClient = require('./client'); | ||
|
||
// process.env.SPACE_SERVICES_URL is specially for local development | ||
const baseURL = process.env.SPACE_SERVICES_URL || 'https://api.space.storage'; | ||
// eslint-disable-next-line no-console | ||
console.log(`Init ApiClient, URL: ${baseURL}`); | ||
|
||
const apiClient = new ApiClient({ | ||
baseURL, | ||
timeout: 5000, | ||
baseURL: process.env.SPACE_SERVICES_URL || 'https://api-dev.space.storage', | ||
}); | ||
|
||
module.exports = apiClient; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,46 @@ | ||
const { REACT_APP_FE_NODE_ENV } = process.env; | ||
const { | ||
NODE_ENV, | ||
REACT_APP_TORUS_NETWORK, | ||
REACT_APP_TORUS_GOOGLE_VERIFIER, | ||
REACT_APP_TORUS_TWITTER_VERIFIER, | ||
REACT_APP_TORUS_TWITTER_CLIENT_ID, | ||
REACT_APP_TORUS_TWITTER_AUTH_DOMAIN, | ||
REACT_APP_TORUS_PROXY_CONTRACT, | ||
REACT_APP_TORUS_PROVIDERS_REDIRECT_URL, | ||
REACT_APP_WS_AUTH_CHALLENGE_URL, | ||
REACT_APP_TORUS_GOOGLE_CLIENT_ID, | ||
} = process.env; | ||
|
||
const config = { | ||
development: { | ||
ws: { | ||
url: 'wss://gqo1oqz055.execute-api.us-west-2.amazonaws.com/dev', | ||
}, | ||
torus: { | ||
sdkConfig: { | ||
enableLogging: true, | ||
redirectToOpener: true, | ||
redirectPathName: 'redirect.html', | ||
baseUrl: 'https://floral-mountain-2401.on.fleek.co/', | ||
proxyContractAddress: '0x4023d2a0D330bF11426B12C6144Cfb96B7fa6183', // details for test net | ||
network: 'testnet', // details for test net | ||
}, | ||
providers: { | ||
google: { | ||
name: 'Google', | ||
typeOfLogin: 'google', | ||
clientId: '480855465278-s0lcvq0m4hpn5hokhgs8s1ujfe3lbk4f.apps.googleusercontent.com', | ||
verifier: 'space-google-testnet', | ||
jwtParams: {}, | ||
}, | ||
twitter: { | ||
name: 'Twitter', | ||
typeOfLogin: 'twitter', | ||
clientId: 'jMfyGURX9wbS3GpusgLOZkvOn0AvIaJj', | ||
verifier: 'fleek-auth0-twitter', | ||
jwtParams: { | ||
domain: 'https://space-twitter.us.auth0.com', | ||
}, | ||
}, | ||
}, | ||
}, | ||
export default { | ||
ws: { | ||
url: REACT_APP_WS_AUTH_CHALLENGE_URL, | ||
}, | ||
production: { | ||
ws: { | ||
url: 'wss://auth.space.storage', | ||
torus: { | ||
sdkConfig: { | ||
enableLogging: NODE_ENV !== 'production', | ||
redirectToOpener: true, | ||
redirectPathName: 'redirect.html', | ||
baseUrl: REACT_APP_TORUS_PROVIDERS_REDIRECT_URL, | ||
proxyContractAddress: REACT_APP_TORUS_PROXY_CONTRACT, // details for test net | ||
network: REACT_APP_TORUS_NETWORK, // details for test net | ||
}, | ||
torus: { | ||
sdkConfig: { | ||
enableLogging: false, | ||
redirectToOpener: true, | ||
redirectPathName: 'redirect.html', | ||
baseUrl: 'https://floral-mountain-2401.on.fleek.co/', | ||
proxyContractAddress: '0x4023d2a0D330bF11426B12C6144Cfb96B7fa6183', // details for test net | ||
network: 'testnet', // details for test net | ||
providers: { | ||
google: { | ||
name: 'Google', | ||
typeOfLogin: 'google', | ||
jwtParams: {}, | ||
verifier: REACT_APP_TORUS_GOOGLE_VERIFIER, | ||
clientId: REACT_APP_TORUS_GOOGLE_CLIENT_ID, | ||
}, | ||
providers: { | ||
google: { | ||
name: 'Google', | ||
typeOfLogin: 'google', | ||
clientId: '480855465278-s0lcvq0m4hpn5hokhgs8s1ujfe3lbk4f.apps.googleusercontent.com', | ||
verifier: 'space-google-testnet', | ||
jwtParams: {}, | ||
}, | ||
twitter: { | ||
name: 'Twitter', | ||
typeOfLogin: 'twitter', | ||
clientId: 'jMfyGURX9wbS3GpusgLOZkvOn0AvIaJj', | ||
verifier: 'fleek-auth0-twitter', | ||
jwtParams: { | ||
domain: 'https://space-twitter.us.auth0.com', | ||
}, | ||
twitter: { | ||
name: 'Twitter', | ||
typeOfLogin: 'twitter', | ||
verifier: REACT_APP_TORUS_TWITTER_VERIFIER, | ||
clientId: REACT_APP_TORUS_TWITTER_CLIENT_ID, | ||
jwtParams: { | ||
domain: REACT_APP_TORUS_TWITTER_AUTH_DOMAIN, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}; | ||
|
||
export default config[REACT_APP_FE_NODE_ENV] || config.development; |