Skip to content

Commit

Permalink
Added production albs
Browse files Browse the repository at this point in the history
  • Loading branch information
oblodgett committed Feb 28, 2024
1 parent 6b1142c commit db565c3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
19 changes: 11 additions & 8 deletions cdk/amplify-production-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ export class AmplifyProductionStack extends cdk.Stack {

{ source: 'https://jira.alliancegenome.org', target: 'https://agr-jira.atlassian.net', status: amplify.RedirectStatus.PERMANENT_REDIRECT },
{ source: 'https://alliancegenome.org', target: 'https://www.alliancegenome.org', status: amplify.RedirectStatus.PERMANENT_REDIRECT },
{ source: '/bluegenes', target: 'https://www.alliancegenome.org/bluegenes/alliancemine', status: amplify.RedirectStatus.PERMANENT_REDIRECT },
{ source: '/swagger-ui', target: 'https://www.alliancegenome.org/swagger-ui/', status: amplify.RedirectStatus.PERMANENT_REDIRECT },

{ source: '/api/<*>', target: 'https://prod-alb.alliancegenome.org/api/<*>', status: amplify.RedirectStatus.REWRITE },

Expand All @@ -37,14 +35,19 @@ export class AmplifyProductionStack extends cdk.Stack {
{ source: '/jbrowse/worms/jbrowse2/', target: 'https://main.d2jjb0xowet5mr.amplifyapp.com/', status: amplify.RedirectStatus.REWRITE },
{ source: '/jbrowse/worms/jbrowse2/<*>', target: 'https://main.d2jjb0xowet5mr.amplifyapp.com/<*>', status: amplify.RedirectStatus.REWRITE },

{ source: '/agr_simplemine.cgi', target: 'https://caltech-curation.textpressolab.com/pub/cgi-bin/forms/agr_simplemine.cgi', status: amplify.RedirectStatus.REWRITE },

{ source: '/jbrowse/<*>', target: 'https://prod-alb.alliancegenome.org/jbrowse/<*>', status: amplify.RedirectStatus.REWRITE },
{ source: '/apollo/<*>', target: 'https://prod-alb.alliancegenome.org/apollo/<*>', status: amplify.RedirectStatus.REWRITE },
{ source: '/agr_simplemine.cgi', target: 'https://caltech-curation.textpressolab.com/pub/cgi-bin/forms/agr_simplemine.cgi', status: amplify.RedirectStatus.REWRITE },
{ source: '/alliancemine/cdn/<*>', target: 'https://prod-alb.alliancegenome.org/alliancemine/cdn/<*>', status: amplify.RedirectStatus.REWRITE },
{ source: '/alliancemine/', target: 'https://prod-alb.alliancegenome.org/alliancemine/', status: amplify.RedirectStatus.REWRITE },
{ source: '/alliancemine/<*>', target: 'https://prod-alb.alliancegenome.org/alliancemine/<*>', status: amplify.RedirectStatus.REWRITE },
{ source: '/bluegenes/', target: 'https://prod-alb.alliancegenome.org/bluegenes/alliancemine', status: amplify.RedirectStatus.REWRITE },
{ source: '/bluegenes/<*>', target: 'https://prod-alb.alliancegenome.org/bluegenes/<*>', status: amplify.RedirectStatus.REWRITE },

{ source: '/alliancemine', target: 'https://production-alliancemine.alliancegenome.org/alliancemine/', status: amplify.RedirectStatus.REWRITE },
{ source: '/alliancemine/', target: 'https://production-alliancemine.alliancegenome.org/alliancemine/', status: amplify.RedirectStatus.REWRITE },
{ source: '/alliancemine/<*>', target: 'https://production-alliancemine.alliancegenome.org/alliancemine/<*>', status: amplify.RedirectStatus.REWRITE },
{ source: '/bluegenes', target: 'https://production-alliancemine.alliancegenome.org/bluegenes/alliancemine', status: amplify.RedirectStatus.REWRITE },
{ source: '/bluegenes/', target: 'https://production-alliancemine.alliancegenome.org/bluegenes/alliancemine', status: amplify.RedirectStatus.REWRITE },
{ source: '/bluegenes/<*>', target: 'https://production-alliancemine.alliancegenome.org/bluegenes/<*>', status: amplify.RedirectStatus.REWRITE },

{ source: '/swagger-ui', target: 'https://prod-alb.alliancegenome.org/swagger-ui/', status: amplify.RedirectStatus.REWRITE },
{ source: '/swagger-ui/', target: 'https://prod-alb.alliancegenome.org/swagger-ui/', status: amplify.RedirectStatus.REWRITE },
{ source: '/swagger-ui/<*>', target: 'https://prod-alb.alliancegenome.org/swagger-ui/<*>', status: amplify.RedirectStatus.REWRITE },
{ source: '/openapi', target: 'https://prod-alb.alliancegenome.org/openapi', status: amplify.RedirectStatus.REWRITE },
Expand Down
8 changes: 5 additions & 3 deletions cdk/amplify-test-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export class AmplifyTestStack extends cdk.Stack {
*/

const test_paths = [
{ source: '/<*>', target: '/index.html', status: amplify.RedirectStatus.NOT_FOUND_REWRITE },
{ source: '/api/<*>', target: 'https://test-alb.alliancegenome.org/api/<*>', status: amplify.RedirectStatus.REWRITE },

{ source: '/jbrowse/worms/protein', target: 'https://test.alliancegenome.org/jbrowse/worms/protein/', status: amplify.RedirectStatus.PERMANENT_REDIRECT },
Expand All @@ -34,19 +33,22 @@ export class AmplifyTestStack extends cdk.Stack {

{ source: '/agr_simplemine.cgi', target: 'https://caltech-curation.textpressolab.com/pub/cgi-bin/forms/agr_simplemine.cgi', status: amplify.RedirectStatus.REWRITE },

{ source: '/jbrowse/<*>', target: 'https://test-alb.alliancegenome.org/jbrowse/<*>', status: amplify.RedirectStatus.REWRITE },
{ source: '/apollo/<*>', target: 'https://test-alb.alliancegenome.org/apollo/<*>', status: amplify.RedirectStatus.REWRITE },

{ source: '/alliancemine', target: 'https://production-alliancemine.alliancegenome.org/alliancemine/', status: amplify.RedirectStatus.REWRITE },
{ source: '/alliancemine/', target: 'https://production-alliancemine.alliancegenome.org/alliancemine/', status: amplify.RedirectStatus.REWRITE },
{ source: '/alliancemine/<*>', target: 'https://production-alliancemine.alliancegenome.org/alliancemine/<*>', status: amplify.RedirectStatus.REWRITE },
{ source: '/bluegenes', target: 'https://production-alliancemine.alliancegenome.org:444/bluegenes/alliancemine', status: amplify.RedirectStatus.REWRITE },
{ source: '/bluegenes/', target: 'https://production-alliancemine.alliancegenome.org:444/bluegenes/alliancemine', status: amplify.RedirectStatus.REWRITE },
{ source: '/bluegenes/<*>', target: 'https://production-alliancemine.alliancegenome.org:444/bluegenes/<*>', status: amplify.RedirectStatus.REWRITE },

{ source: '/jbrowse/<*>', target: 'https://test-alb.alliancegenome.org/jbrowse/<*>', status: amplify.RedirectStatus.REWRITE },
{ source: '/apollo/<*>', target: 'https://test-alb.alliancegenome.org/apollo/<*>', status: amplify.RedirectStatus.REWRITE },
{ source: '/swagger-ui', target: 'https://test-alb.alliancegenome.org/swagger-ui', status: amplify.RedirectStatus.REWRITE },
{ source: '/swagger-ui/', target: 'https://test-alb.alliancegenome.org/swagger-ui/', status: amplify.RedirectStatus.REWRITE },
{ source: '/swagger-ui/<*>', target: 'https://test-alb.alliancegenome.org/swagger-ui/<*>', status: amplify.RedirectStatus.REWRITE },
{ source: '/openapi', target: 'https://test-alb.alliancegenome.org/openapi', status: amplify.RedirectStatus.REWRITE },

{ source: '/<*>', target: '/index.html', status: amplify.RedirectStatus.NOT_FOUND_REWRITE },
{ source: '</^[^.]+$/>', target: '/index.html', status: amplify.RedirectStatus.REWRITE }
];

Expand Down
2 changes: 1 addition & 1 deletion cdk/cdk-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ new AmplifyALBStack(app, 'test-alb-stack', {
new AmplifyALBStack(app, 'prod-alb-stack', {
stackName: 'prod-alb-stack',
dnsName: 'prod',
targetInstanceId: 'i-0b3c6166858f87457',
targetInstanceId: 'i-003fafec7d050fd97',
env: {
region: process.env.CDK_DEFAULT_REGION,
account: process.env.CDK_DEFAULT_ACCOUNT,
Expand Down

0 comments on commit db565c3

Please sign in to comment.