Skip to content

Commit 1d6f6f6

Browse files
Merge pull request #10 from NHSDigital/NPA-1868-connect-api-gateway-to-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
2 parents 4d59006 + d812ffd commit 1d6f6f6

File tree

1 file changed

+8
-18
lines changed

1 file changed

+8
-18
lines changed

proxies/live/apiproxy/targets/target.xml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,14 @@
2020
<Condition>oauthV2.OauthV2.VerifyAccessToken.failed</Condition>
2121
</FaultRule>
2222
</FaultRules>
23-
<!--
24-
To point to a named target server as this is how it SHOULD be implemented:
25-
For example:
26-
<HTTPTargetConnection>
27-
<SSLInfo>
28-
<Enabled>true</Enabled>
29-
</SSLInfo>
30-
<LoadBalancer>
31-
<Server name="validated-relationships-service-api" />
32-
</LoadBalancer>
33-
</HTTPTargetConnection>
34-
-->
3523
<HTTPTargetConnection>
36-
<URL>http://mocktarget.apigee.net</URL>
37-
<Properties>
38-
<Property name="supports.http10">true</Property>
39-
<Property name="request.retain.headers">User-Agent,Referer,Accept-Language</Property>
40-
<Property name="retain.queryparams">apikey</Property>
41-
</Properties>
24+
<!--TODO: The target needs to configured on a per enironment basis (NPA-1979)
25+
This URL will also need to change once we have DNS in place (NPA-1669)
26+
-->
27+
<URL>https://6e6ljoc1a5.execute-api.eu-west-2.amazonaws.com/default/api</URL>
28+
<Properties>
29+
<Property name="supports.http10">true</Property>
30+
<Property name="request.retain.headers">User-Agent,Referer,Accept-Language</Property>
31+
</Properties>
4232
</HTTPTargetConnection>
4333
</TargetEndpoint>

0 commit comments

Comments
 (0)