Skip to content

Commit

Permalink
Add FeederPublicFeedsUrlPrefix constant
Browse files Browse the repository at this point in the history
  • Loading branch information
cavis committed Sep 18, 2023
1 parent 80f2e45 commit 8b131f2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spire/templates/apps-200A.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Parameters:
NetworksHostname: { Type: String }
PlayHostname: { Type: String }
FeederCdnHostname: { Type: String }
FeederPublicFeedsUrlPrefix: { Type: String }
RemixHostname: { Type: String }
SharedAuroraMysqlEndpoint: { Type: String }
SharedAuroraMysqlPort: { Type: String }
Expand Down Expand Up @@ -288,6 +289,7 @@ Resources:
PlayHostname: !Ref PlayHostname
BetaHostname: !Ref BetaHostname
FeederCdnHostname: !Ref FeederCdnHostname
FeederPublicFeedsUrlPrefix: !Ref FeederPublicFeedsUrlPrefix
DovetailAppleApiBridgeEndpointUrl: !Ref DovetailAppleApiBridgeEndpointUrl
EchoServiceToken: !Ref EchoServiceToken
Tags:
Expand Down
5 changes: 5 additions & 0 deletions spire/templates/apps/feeder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Parameters:
FeederAuthProxyHostname: { Type: String }
FeederAuthProxyInternalHostname: { Type: String }
FeederCdnHostname: { Type: String }
FeederPublicFeedsUrlPrefix: { Type: String }
DovetailAppleApiBridgeEndpointUrl: { Type: String }

Conditions:
Expand Down Expand Up @@ -667,6 +668,8 @@ Resources:
Value: !Ref SharedAuroraPostgresqlPort
- Name: PRX_HOST
Value: !Ref BetaHostname
- Name: PUBLIC_FEEDS_URL_PREFIX
Value: !Ref FeederPublicFeedsUrlPrefix
- Name: RAILS_ENV
Value: !Ref EnvironmentTypeLowercase
- Name: UPLOAD_BUCKET_NAME
Expand Down Expand Up @@ -805,6 +808,8 @@ Resources:
Value: !Ref SharedAuroraPostgresqlPort
- Name: PRX_HOST
Value: !Ref BetaHostname
- Name: PUBLIC_FEEDS_URL_PREFIX
Value: !Ref FeederPublicFeedsUrlPrefix
- Name: RAILS_ENV
Value: !Ref EnvironmentTypeLowercase
- Name: START_SAY_WHEN
Expand Down
3 changes: 3 additions & 0 deletions spire/templates/constants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Mappings:
AdFilesHostname: a.prxu.org
MetaHostname: meta.prx.org
FeederCdnHostname: f-staging.prxu.org
FeederPublicFeedsUrlPrefix: https://staging.publicfeeds.net/f
Production:
EnvironmentTypeAbbreviation: prod
EnvironmentTypeLowercase: production
Expand Down Expand Up @@ -73,6 +74,7 @@ Mappings:
AdFilesHostname: a.prxu.org
MetaHostname: meta.prx.org
FeederCdnHostname: f.prxu.org
FeederPublicFeedsUrlPrefix: https://publicfeeds.net/f

Resources:
Placeholder: { Type: AWS::SNS::Topic }
Expand Down Expand Up @@ -120,4 +122,5 @@ Outputs:
AdFilesHostname: { Value: !FindInMap [EnvironmentTypeMap, !Ref EnvironmentType, AdFilesHostname] }
MetaHostname: { Value: !FindInMap [EnvironmentTypeMap, !Ref EnvironmentType, MetaHostname] }
FeederCdnHostname: { Value: !FindInMap [EnvironmentTypeMap, !Ref EnvironmentType, FeederCdnHostname] }
FeederPublicFeedsUrlPrefix: { Value: !FindInMap [EnvironmentTypeMap, !Ref EnvironmentType, FeederPublicFeedsUrlPrefix] }
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 @@ -654,6 +654,7 @@ Resources:
NetworksHostname: !GetAtt Constants2.Outputs.NetworksHostname
PlayHostname: !GetAtt Constants2.Outputs.PlayHostname
FeederCdnHostname: !GetAtt Constants2.Outputs.FeederCdnHostname
FeederPublicFeedsUrlPrefix: !GetAtt Constants2.Outputs.FeederPublicFeedsUrlPrefix
RemixHostname: !GetAtt Constants2.Outputs.RemixHostname
SharedAuroraMysqlEndpoint: !Ref SharedAuroraMysqlEndpoint
SharedAuroraMysqlPort: !Ref SharedAuroraMysqlPort
Expand Down

0 comments on commit 8b131f2

Please sign in to comment.