Skip to content

Commit

Permalink
Merge pull request #10 from NHSDigital/NPA-1868-connect-api-gateway-t…
Browse files Browse the repository at this point in the history
…o-apim

Set target to point to VRS INT API Gateway

This is the second step for setting up our target server. First was to configure it in the Apigee UI. This step is adding it to this repo. Next step is to refactor the target definition out into:

https://github.com/NHSDigital/api-management-infrastructure/blob/master/ansible/roles/apigee-keystores-refs-targetservers/vars/main/target-servers.yml
  • Loading branch information
chris-young-12-nhs authored Feb 9, 2024
2 parents 4d59006 + d812ffd commit 1d6f6f6
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions proxies/live/apiproxy/targets/target.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,14 @@
<Condition>oauthV2.OauthV2.VerifyAccessToken.failed</Condition>
</FaultRule>
</FaultRules>
<!--
To point to a named target server as this is how it SHOULD be implemented:
For example:
<HTTPTargetConnection>
<SSLInfo>
<Enabled>true</Enabled>
</SSLInfo>
<LoadBalancer>
<Server name="validated-relationships-service-api" />
</LoadBalancer>
</HTTPTargetConnection>
-->
<HTTPTargetConnection>
<URL>http://mocktarget.apigee.net</URL>
<Properties>
<Property name="supports.http10">true</Property>
<Property name="request.retain.headers">User-Agent,Referer,Accept-Language</Property>
<Property name="retain.queryparams">apikey</Property>
</Properties>
<!--TODO: The target needs to configured on a per enironment basis (NPA-1979)
This URL will also need to change once we have DNS in place (NPA-1669)
-->
<URL>https://6e6ljoc1a5.execute-api.eu-west-2.amazonaws.com/default/api</URL>
<Properties>
<Property name="supports.http10">true</Property>
<Property name="request.retain.headers">User-Agent,Referer,Accept-Language</Property>
</Properties>
</HTTPTargetConnection>
</TargetEndpoint>

0 comments on commit 1d6f6f6

Please sign in to comment.