Skip to content

Commit

Permalink
Merge pull request #704 from PRX/feat/publicfeedsdotnet
Browse files Browse the repository at this point in the history
Publicfeeds.net
  • Loading branch information
cavis authored Sep 18, 2023
2 parents 79c4328 + 2c38140 commit b9a3d9b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
2 changes: 2 additions & 0 deletions spire/templates/apps-200A.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Parameters:
MetricsHostname: { Type: String }
NetworksHostname: { Type: String }
PlayHostname: { Type: String }
FeederCdnHostname: { Type: String }
PublicFeedsHostname: { Type: String }
RemixHostname: { Type: String }
SharedAuroraMysqlEndpoint: { Type: String }
Expand Down Expand Up @@ -287,6 +288,7 @@ Resources:
IdHostname: !Ref IdHostname
PlayHostname: !Ref PlayHostname
BetaHostname: !Ref BetaHostname
FeederCdnHostname: !Ref FeederCdnHostname
PublicFeedsHostname: !Ref PublicFeedsHostname
DovetailAppleApiBridgeEndpointUrl: !Ref DovetailAppleApiBridgeEndpointUrl
EchoServiceToken: !Ref EchoServiceToken
Expand Down
11 changes: 8 additions & 3 deletions spire/templates/apps/feeder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Parameters:
FeederHostname: { Type: String }
FeederAuthProxyHostname: { Type: String }
FeederAuthProxyInternalHostname: { Type: String }
FeederCdnHostname: { Type: String }
PublicFeedsHostname: { Type: String }
DovetailAppleApiBridgeEndpointUrl: { Type: String }

Expand Down Expand Up @@ -644,7 +645,7 @@ Resources:
- Name: DOVETAIL_HOST
Value: !Ref DovetailRouterHostname
- Name: FEEDER_CDN_HOST
Value: !Ref PublicFeedsHostname
Value: !Ref FeederCdnHostname
- Name: FEEDER_CDN_PRIVATE_HOST
Value: !Ref FeederAuthProxyHostname
- Name: FEEDER_HOST
Expand All @@ -667,6 +668,8 @@ Resources:
Value: !Ref SharedAuroraPostgresqlPort
- Name: PRX_HOST
Value: !Ref BetaHostname
- Name: PUBLIC_FEEDS_URL_PREFIX
Value: !Sub https://${PublicFeedsHostname}/f
- Name: RAILS_ENV
Value: !Ref EnvironmentTypeLowercase
- Name: UPLOAD_BUCKET_NAME
Expand Down Expand Up @@ -784,7 +787,7 @@ Resources:
- Name: DOVETAIL_HOST
Value: !Ref DovetailRouterHostname
- Name: FEEDER_CDN_HOST
Value: !Ref PublicFeedsHostname
Value: !Ref FeederCdnHostname
- Name: FEEDER_CDN_PRIVATE_HOST
Value: !Ref FeederAuthProxyHostname
- Name: FEEDER_HOST
Expand All @@ -805,6 +808,8 @@ Resources:
Value: !Ref SharedAuroraPostgresqlPort
- Name: PRX_HOST
Value: !Ref BetaHostname
- Name: PUBLIC_FEEDS_URL_PREFIX
Value: !Sub https://${PublicFeedsHostname}/f
- Name: RAILS_ENV
Value: !Ref EnvironmentTypeLowercase
- Name: START_SAY_WHEN
Expand Down Expand Up @@ -942,7 +947,7 @@ Resources:
Description: !Sub Feeder ${EnvironmentType} private feed proxy server
Environment:
Variables:
PUBLIC_FEED_DOMAIN: !Ref PublicFeedsHostname
PUBLIC_FEED_DOMAIN: !Ref FeederCdnHostname
Events:
ApiRootRequest:
Properties:
Expand Down
7 changes: 5 additions & 2 deletions spire/templates/constants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ Mappings:
TheWorldSearchInternalHostname: search.staging.theworld.prx.tech
AdFilesHostname: a.prxu.org
MetaHostname: meta.prx.org
PublicFeedsHostname: f-staging.prxu.org
FeederCdnHostname: f-staging.prxu.org
PublicFeedsHostname: staging.publicfeeds.net
Production:
EnvironmentTypeAbbreviation: prod
EnvironmentTypeLowercase: production
Expand Down Expand Up @@ -72,7 +73,8 @@ Mappings:
TheWorldSearchInternalHostname: search.theworld.prx.tech
AdFilesHostname: a.prxu.org
MetaHostname: meta.prx.org
PublicFeedsHostname: f.prxu.org
FeederCdnHostname: f.prxu.org
PublicFeedsHostname: publicfeeds.net

Resources:
Placeholder: { Type: AWS::SNS::Topic }
Expand Down Expand Up @@ -119,5 +121,6 @@ Outputs:
# Asset hostnames
AdFilesHostname: { Value: !FindInMap [EnvironmentTypeMap, !Ref EnvironmentType, AdFilesHostname] }
MetaHostname: { Value: !FindInMap [EnvironmentTypeMap, !Ref EnvironmentType, MetaHostname] }
FeederCdnHostname: { Value: !FindInMap [EnvironmentTypeMap, !Ref EnvironmentType, FeederCdnHostname] }
PublicFeedsHostname: { Value: !FindInMap [EnvironmentTypeMap, !Ref EnvironmentType, PublicFeedsHostname] }
WfmtHostname: { Value: !FindInMap [EnvironmentTypeMap, !Ref EnvironmentType, WfmtHostname] }
1 change: 1 addition & 0 deletions spire/templates/root.yml
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@ Resources:
MetricsHostname: !GetAtt Constants2.Outputs.MetricsHostname
NetworksHostname: !GetAtt Constants2.Outputs.NetworksHostname
PlayHostname: !GetAtt Constants2.Outputs.PlayHostname
FeederCdnHostname: !GetAtt Constants2.Outputs.FeederCdnHostname
PublicFeedsHostname: !GetAtt Constants2.Outputs.PublicFeedsHostname
RemixHostname: !GetAtt Constants2.Outputs.RemixHostname
SharedAuroraMysqlEndpoint: !Ref SharedAuroraMysqlEndpoint
Expand Down

0 comments on commit b9a3d9b

Please sign in to comment.