Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [CP-548] Adding config files for EKS stage and dev #5009

Merged
merged 11 commits into from
Oct 4, 2023
73 changes: 73 additions & 0 deletions config/development.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
const { merge } = require('webpack-merge');
var base = require('./index.js')

const apolloBatching = process.env.APOLLO_BATCH !== 'false';
const memcachedServers = process.env.MEMCACHE_HOST || 'ui-memcached:11211';

module.exports = merge(base, {
app: {
apolloBatching,
host: 'www.development.kiva.org',
publicPath: 'https://www.development.kiva.org/',
photoPath: 'https://www-dev-kiva-org.freetls.fastly.net/img/',
graphqlUri: 'https://gateway.development.kiva.org/graphql',
enablePerimeterx: true,
perimeterxAppId: 'PX5u4Lz98O',
enableAnalytics: true,
enableGTM: true,
googleTagmanagerId: 'GTM-PXFRMT',
enableGA: true,
gaId: 'UA-11686022-3',
grecaptchaSitekey: '6LcXENcmAAAAAEC4ygspn1WTm4zP4gLexXDnWuXE',
enableHotjar: true,
hotjarId: '3071239',
enableSnowplow: true,
snowplowUri: 'events.fivetran.com/snowplow/v5qt54ocr2nm',
enableFB: true,
fbApplicationId: '364044572460',
fbOgNameSpace: 'dev-kiva',
enableSentry: true,
sentryURI: 'https://[email protected]/1201287',
algoliaConfig: {
group: 'dev',
appId: 'testingZ9YK0WNQ85',
apiKey: '28aaa1d56e6a1688f13f6b41da0f27a5',
defaultIndex: 'dev_fundraising_popularity',
},
btTokenKey: 'sandbox_q7kbtvzy_vynd473f79sfskz3',
auth0: {
loginRedirectUrls: {
cNTV7eN5sBKgv9nQOxDpAz1pPfJGlBI5: 'https://admin.development.kiva.org/admin/login?force=1',
e6wSaTBDpKRkV5SV5cWw6zD6eJjd2DEk: 'https://partners.development.kiva.org/pa2/login/login?authLevel=recent',
xOXldYg02WsLnlnn0D5xoPWI2i3aNsFD: 'https://www.development.kiva.org/authenticate?authLevel=recent',
KIzjUBQjKZwMRgYSn6NvMxsUwNppwnLH: 'https://www.development.kiva.org/ui-login?force=true',
ouGKxT4mE4wQEKqpfsHSE96c9rHXQqZF: 'https://www.development.kiva.org/ui-login?force=true',
},
enable: true,
checkFakeAuth: true,
apiAudience: 'https://api.dev.kivaws.org/graphql',
mfaAudience: 'https://kiva-dev.auth0.com/mfa/',
browserClientID: 'ouGKxT4mE4wQEKqpfsHSE96c9rHXQqZF',
serverClientID: 'KIzjUBQjKZwMRgYSn6NvMxsUwNppwnLH',
browserCallbackUri: 'https://www.development.kiva.org/process-browser-auth',
serverCallbackUri: 'https://www.development.kiva.org/process-ssr-auth',
domain: 'login.dev.kiva.org',
},
paypal : {
url: 'www.sandbox.paypal.com',
environment: 'sandbox'
},
oneTrust: {
enable: true,
key: 'db9dcf94-1c32-40fb-9a57-cefafea1088d',
domainSuffix: '-test',
},
},
server: {
graphqlUri: 'https://gateway.development.kiva.org/graphql',
sessionUri: 'https://www.development.kiva.org/start-ui-session',
memcachedEnabled: true,
memcachedServers,
disableCluster: true
}
})
69 changes: 69 additions & 0 deletions config/staging.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
const { merge } = require('webpack-merge');
var base = require('./index.js')

module.exports = merge(base, {
app: {
host: 'www.staging.kiva.org',
publicPath: 'https://www.development.kiva.org/',
photoPath: 'https://www-stage-kiva-org.freetls.fastly.net/img/',
graphqlUri: 'https://gateway.staging.kiva.org/graphql',
enablePerimeterx: false,
perimeterxAppId: '####',
enableAnalytics: true,
enableGTM: true,
googleTagmanagerId: 'GTM-K6HR28',
enableGA: true,
gaId: 'UA-11686022-5',
grecaptchaSitekey: '6LcXENcmAAAAAEC4ygspn1WTm4zP4gLexXDnWuXE',
enableSnowplow: true,
snowplowUri: 'events.fivetran.com/snowplow/v5qt54ocr2nm',
enableHotjar: false,
hotjarId: '3112979',
enableOptimizely: false,
enableFB: true,
fbApplicationId: '2260431077572912',
fbOgNameSpace: 'stage-kiva',
enableSentry: true,
sentryURI: 'https://[email protected]/1201287',
algoliaConfig: {
group: 'stage',
appId: 'testingZ9YK0WNQ85',
apiKey: '28aaa1d56e6a1688f13f6b41da0f27a5',
defaultIndex: 'stage_fundraising_popularity',
},
btTokenKey: 'sandbox_q7kbtvzy_vynd473f79sfskz3',
auth0: {
loginRedirectUrls: {
iHNp5rV3XxaozU7B50oXpNye6RCAE5OD: 'https://admin.staging.kiva.org/admin/login?force=1',
fNYmJqpKX6mWiz1Evk8b1eqbM9KoeQ45: 'https://partners.staging.kiva.org/pa2/login/login?authLevel=recent',
'5NP78k662QLODpkk4VzMyKxP0QWTcVmB': 'https://www.staging.kiva.org/authenticate?authLevel=recent',
Ch7rwGop9lctGpm5KfEl6VTVMrqKoWZ4: 'https://www.staging.kiva.org/ui-login?force=true',
pK7XVUBouUjPEFm9bz5MN7sjU5HACqqe: 'https://www.staging.kiva.org/ui-login?force=true',
},
enable: true,
checkFakeAuth: true,
apiAudience: 'https://api.stage.kivaws.org/graphql',
mfaAudience: 'https://kiva-stage.auth0.com/mfa/',
browserClientID: 'pK7XVUBouUjPEFm9bz5MN7sjU5HACqqe',
serverClientID: 'Ch7rwGop9lctGpm5KfEl6VTVMrqKoWZ4',
browserCallbackUri: 'https://www.staging.kiva.org/process-browser-auth',
serverCallbackUri: 'https://www.staging.kiva.org/process-ssr-auth',
domain: 'login.stage.kiva.org',
},
paypal : {
url: 'www.sandbox.paypal.com',
environment: 'sandbox'
},
oneTrust: {
enable: true,
key: 'db9dcf94-1c32-40fb-9a57-cefafea1088d',
domainSuffix: '-test',
},
},
server: {
graphqlUri: 'https://gateway.staging.kiva.org/graphql',
sessionUri: 'https://www.staging.kiva.org/start-ui-session',
memcachedEnabled: true,
memcachedServers: 'stage-memcached-01:11211',
}
})
Loading