Skip to content

Commit

Permalink
Merge pull request #764 from PRX/feat/redirect_publish
Browse files Browse the repository at this point in the history
Redirect publish
  • Loading branch information
cavis authored May 14, 2024
2 parents 675abc3 + 373ffc8 commit a7ba499
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions spire/templates/apps-200A.yml
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ Resources:
S3SigningAccessKeyId: !Ref S3SigningAccessKeyId
CastleHostname: !Ref CastleHostname
CmsHostname: !Ref CmsHostname
FeederHostname: !Ref FeederHostname
IdHostname: !Ref IdHostname
MetricsHostname: !Ref MetricsHostname
PlayHostname: !Ref PlayHostname
Expand Down
13 changes: 10 additions & 3 deletions spire/templates/apps/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Parameters:
S3SigningAccessKeyId: { Type: String }
CastleHostname: { Type: String }
CmsHostname: { Type: String }
FeederHostname: { Type: String }
IdHostname: { Type: String }
MetricsHostname: { Type: String }
PlayHostname: { Type: String }
Expand Down Expand Up @@ -69,8 +70,14 @@ Resources:
Type: AWS::ElasticLoadBalancingV2::ListenerRule
Properties:
Actions:
- TargetGroupArn: !Ref TargetGroup
Type: forward
- RedirectConfig:
Host: !Ref FeederHostname
Path: "/"
Port: "443"
Protocol: HTTPS
Query: ""
StatusCode: HTTP_301
Type: redirect
Conditions:
- Field: host-header
Values:
Expand Down Expand Up @@ -142,7 +149,7 @@ Resources:
DeploymentConfiguration:
MaximumPercent: 200
MinimumHealthyPercent: 50
DesiredCount: !If [IsProduction, 2, 1]
DesiredCount: 0
EnableECSManagedTags: true
LoadBalancers:
- ContainerName: !Ref kContainerName
Expand Down

0 comments on commit a7ba499

Please sign in to comment.