Skip to content

Commit a0c2780

Browse files
Merge pull request #209411 from ninpan-ms/revert-209410-revert-209094-ninpan/scg-tls
Add protocol to support TLS between gateway and apps
2 parents b66d112 + 37d5eeb commit a0c2780

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

articles/spring-apps/how-to-use-enterprise-spring-cloud-gateway.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ The route config definition includes the following parts:
125125

126126
- OpenAPI URI: The URI points to an OpenAPI specification. Both OpenAPI 2.0 and OpenAPI 3.0 specs are supported. The specification can be shown in API portal to try out. Two types of URI are accepted. The first type of URI is a public endpoint like `https://petstore3.swagger.io/api/v3/openapi.json`. The second type of URI is a constructed URL `http://<app-name>/{relative-path-to-OpenAPI-spec}`, where `app-name` is the name of an application in Azure Spring Apps that includes the API definition.
127127
- routes: A list of route rules about how the traffic goes to one app.
128+
- protocol: The backend protocol of the application to which Spring Cloud Gateway routes traffic. Its supported values are `HTTP` or `HTTPS`, the default is `HTTP`. To secure traffic from Spring Cloud Gateway to your HTTPS-enabled application, you need to set the protocol to `HTTPS` in your route configuration.
128129

129130
Use the following command to create a route config. The `--app-name` value should be the name of an app hosted in Azure Spring Apps that the requests will route to.
130131

@@ -142,6 +143,7 @@ Here's a sample of the JSON file that is passed to the `--routes-file` parameter
142143
"open_api": {
143144
"uri": "<OpenAPI-URI>"
144145
},
146+
"protocol": "<protocol-of-routed-app>",
145147
"routes": [
146148
{
147149
"title": "<title-of-route>",
@@ -224,6 +226,7 @@ Use the following steps to create an example application using Spring Cloud Gate
224226

225227
```json
226228
{
229+
"protocol": "HTTP",
227230
"routes": [
228231
{
229232
"title": "Customers service",

0 commit comments

Comments
 (0)