Skip to content

Commit

Permalink
CCM-6416: no mergy
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidFueryBJSS committed Sep 27, 2024
1 parent fc8c508 commit 5eba475
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 4 deletions.
5 changes: 1 addition & 4 deletions proxies/live/apiproxy/targets/target.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
<SSLInfo>
<Enabled>true</Enabled>
</SSLInfo>
<LoadBalancer>
<Server name="{{ TARGET_SERVER_OVERRIDE | default('communications-manager-target') }}"/>
</LoadBalancer>
<Path>{requestpath}</Path>
<URL>https://comms-apim.<env>.communications.national.nhs.uk</URL>
<Properties>
<Property name="io.timeout.millis">29000</Property>
</Properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
<Name>requestpath</Name>
<Value>/api/v1/send</Value>
</AssignVariable>
{% if ENVIRONMENT_TYPE != 'sandbox' %}
<AssignVariable>
<Name>target.url</Name>
<Value>https://comms-apim.de-dafu4.communications.national.nhs.uk/api/v1/messages</Value>
</AssignVariable>
{% endif %}
<Set>
<Payload contentType="application/json" variablePrefix="%" variableSuffix="#">%data.payload#</Payload>
<Headers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
<Name>requestpath</Name>
<Value>/api/v1/messages</Value>
</AssignVariable>

{% if ENVIRONMENT_TYPE != 'sandbox' %}
<AssignVariable>
<Name>target.url</Name>
<Value>https://comms-apim.de-dafu1.communications.national.nhs.uk/api/v1/send</Value>
</AssignVariable>
{% endif %}
<Set>
<Payload contentType="application/json" variablePrefix="%" variableSuffix="#">%data.payload#</Payload>
<Headers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
<Name>requestpath</Name>
<Template>/api/v1/messages/{data.messageId}</Template>
</AssignVariable>
{% if ENVIRONMENT_TYPE != 'sandbox' %}
<AssignVariable>
<Name>target.url</Name>
<Value>https://comms-apim.de-dafu4.communications.national.nhs.uk/api/v1/messages</Value>
</AssignVariable>
{% endif %}
<Set>
<Headers>
<Header name="X-Correlation-Id">{backendCorrelationId}</Header>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
<Name>requestpath</Name>
<Value>/api/channels/nhsapp/accounts</Value>
</AssignVariable>
{% if ENVIRONMENT_TYPE != 'sandbox' %}
<AssignVariable>
<Name>target.url</Name>
<Value>https://comms-apim.de-dafu4.communications.national.nhs.uk/api/v1/messages</Value>
</AssignVariable>
{% endif %}
<Set>
<Headers>
<Header name="X-Correlation-Id">{backendCorrelationId}</Header>
Expand Down

0 comments on commit 5eba475

Please sign in to comment.