Skip to content

Commit

Permalink
Add SRT Support
Browse files Browse the repository at this point in the history
  • Loading branch information
muratugureminoglu committed Jun 5, 2024
1 parent 2801a28 commit 21eeb02
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions cloudformation/antmedia-aws-autoscale-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,15 @@ Resources:
LoadBalancerArn: !Ref RTMPLoadBalancer
Port: '1935'
Protocol: TCP
SRTListener:
Type: 'AWS::ElasticLoadBalancingV2::Listener'
Properties:
DefaultActions:
- Type: forward
TargetGroupArn: !Ref SRTTargetGroup
LoadBalancerArn: !Ref RTMPLoadBalancer
Port: '4200'
Protocol: UDP
RTMPTargetGroup:
Type: 'AWS::ElasticLoadBalancingV2::TargetGroup'
Properties:
Expand All @@ -496,6 +505,17 @@ Resources:
Protocol: TCP
UnhealthyThresholdCount: 3
VpcId: !Ref AntMediaVPC
SRTTargetGroup:
Type: 'AWS::ElasticLoadBalancingV2::TargetGroup'
Properties:
HealthCheckIntervalSeconds: 30
HealthyThresholdCount: 3
Port: 4200
Protocol: UDP
UnhealthyThresholdCount: 3
HealthCheckProtocol: TCP
HealthCheckPort: '5080'
VpcId: !Ref AntMediaVPC
RTMPSecurityGroup:
Type: 'AWS::EC2::SecurityGroup'
Properties:
Expand All @@ -505,6 +525,10 @@ Resources:
FromPort: '1935'
ToPort: '1935'
CidrIp: '0.0.0.0/0'
- IpProtocol: udp
FromPort: '4200'
ToPort: '4200'
CidrIp: '0.0.0.0/0'
SecurityGroupEgress:
- IpProtocol: tcp
FromPort: 0
Expand All @@ -528,6 +552,7 @@ Resources:
TargetGroupARNs:
- !Ref ALBTargetGroupOrigin
- !Ref RTMPTargetGroup
- !Ref SRTTargetGroup
Tags:
- Key: Name
Value: Antmedia-Origin
Expand Down Expand Up @@ -840,6 +865,9 @@ Resources:
- IpProtocol: udp
FromPort: '50000'
ToPort: '60000'
- IpProtocol: udp
FromPort: '4200'
ToPort: '4200'
CidrIp: 0.0.0.0/0
- IpProtocol: tcp
FromPort: '5000'
Expand Down

0 comments on commit 21eeb02

Please sign in to comment.