Skip to content

Commit

Permalink
Merge pull request #711 from PRX/dovetail-domains
Browse files Browse the repository at this point in the history
Add new Dovetail host rules for apps
  • Loading branch information
farski authored Oct 11, 2023
2 parents 54f5915 + 839c823 commit cb10e99
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 3 deletions.
14 changes: 13 additions & 1 deletion spire/templates/apps/augury.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,21 @@ Resources:
Conditions:
- Field: host-header
Values:
- augury.*
- inventory.dovetail.*
ListenerArn: !Ref AlbHttpsListenerArn
Priority: !Join ["", [!Ref AlbListenerRulePriorityPrefix, "01"]]
AltHostHeaderListenerRule:
Type: AWS::ElasticLoadBalancingV2::ListenerRule
Properties:
Actions:
- TargetGroupArn: !Ref TargetGroup
Type: forward
Conditions:
- Field: host-header
Values:
- augury.*
ListenerArn: !Ref AlbHttpsListenerArn
Priority: !Join ["", [!Ref AlbListenerRulePriorityPrefix, "02"]]

TargetGroup:
Type: AWS::ElasticLoadBalancingV2::TargetGroup
Expand Down
14 changes: 13 additions & 1 deletion spire/templates/apps/feeder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,21 @@ Resources:
Conditions:
- Field: host-header
Values:
- feeder.*
- podcasts.dovetail.*
ListenerArn: !Ref AlbHttpsListenerArn
Priority: !Join ["", [!Ref AlbListenerRulePriorityPrefix, "01"]]
AltHostHeaderListenerRule:
Type: AWS::ElasticLoadBalancingV2::ListenerRule
Properties:
Actions:
- TargetGroupArn: !Ref WebTargetGroup2
Type: forward
Conditions:
- Field: host-header
Values:
- feeder.*
ListenerArn: !Ref AlbHttpsListenerArn
Priority: !Join ["", [!Ref AlbListenerRulePriorityPrefix, "02"]]

DefaultJobQueue:
Type: AWS::SQS::Queue
Expand Down
14 changes: 13 additions & 1 deletion spire/templates/apps/metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,21 @@ Resources:
Conditions:
- Field: host-header
Values:
- metrics.*
- metrics.dovetail.*
ListenerArn: !Ref AlbHttpsListenerArn
Priority: !Join ["", [!Ref AlbListenerRulePriorityPrefix, "00"]]
AltHostHeaderListenerRule:
Type: AWS::ElasticLoadBalancingV2::ListenerRule
Properties:
Actions:
- TargetGroupArn: !Ref TargetGroup
Type: forward
Conditions:
- Field: host-header
Values:
- metrics.*
ListenerArn: !Ref AlbHttpsListenerArn
Priority: !Join ["", [!Ref AlbListenerRulePriorityPrefix, "01"]]

TargetGroup:
Type: AWS::ElasticLoadBalancingV2::TargetGroup
Expand Down

0 comments on commit cb10e99

Please sign in to comment.