You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/spring-apps/enterprise/how-to-configure-enterprise-spring-cloud-gateway.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -318,7 +318,7 @@ az spring gateway update \
318
318
319
319
You must specify the protocol as HTTPS in the route configuration. The following JSON object instructs VMware Spring Cloud Gateway to use the HTTPS protocol for all traffic between the gateway and the app.
320
320
321
-
1. Create a file named *test-tls-route.json* with the following content:
321
+
1. Create a file named **test-tls-route.json** with the following content:
322
322
323
323
```json
324
324
{
@@ -864,7 +864,7 @@ Use the following steps to update the add-on configuration.
864
864
865
865
### [Azure CLI](#tab/Azure-CLI)
866
866
867
-
1. Prepare the JSON file for add-on configurations (*\<file-name-of-addon-configs-json\>.json*) with the following content:
867
+
1. Prepare the JSON file for add-on configurations (**\<file-name-of-addon-configs-json\>.json**) with the following content:
Copy file name to clipboardExpand all lines: articles/spring-apps/enterprise/how-to-enterprise-deploy-static-file.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -228,7 +228,7 @@ The [Paketo buildpacks samples](https://github.com/paketo-buildpacks/samples/tre
228
228
229
229
- Serving static files with a default server configuration file using `BP_WEB_SERVER` to select either [HTTPD](https://github.com/paketo-buildpacks/samples/blob/main/web-servers/no-config-file-sample/HTTPD.md) or [NGINX](https://github.com/paketo-buildpacks/samples/blob/main/web-servers/no-config-file-sample/NGINX.md).
230
230
- Using Node Package Manager to build a [React app](https://github.com/paketo-buildpacks/samples/tree/main/web-servers/react-frontend-sample) into static files that a web server can serve. Use the following steps:
231
-
1. Define a script under the `scripts` property of the *package.json* file that builds your production-ready static assets. For React, it's `build`.
231
+
1. Define a script under the `scripts` property of the **package.json** file that builds your production-ready static assets. For React, it's `build`.
232
232
1. Find out where static assets are stored after the build script runs. For React, static assets are stored in `./build` by default.
233
233
1. Set `BP_NODE_RUN_SCRIPTS` to the name of the build script.
234
234
1. Set `BP_WEB_SERVER_ROOT` to the build output directory.
@@ -240,10 +240,10 @@ You can use environment variables to modify the autogenerated server configurati
240
240
241
241
| Environment Variable | Supported Value | Description |
|`BP_WEB_SERVER`|*nginx* or *httpd*| Specifies the web server type, either *nginx* for Nginx or *httpd* for Apache HTTP server. Required when using the autogenerated server configuration file. |
244
-
|`BP_WEB_SERVER_ROOT`| An absolute file path or a file path relative to */workspace*. | Sets the root directory for the static files. The default is `public`. |
245
-
|`BP_WEB_SERVER_ENABLE_PUSH_STATE`|*true* or *false*| Enables push state routing for your application. Regardless of the route that is requested, *index.html* is always served. Useful for single-page web applications. |
246
-
|`BP_WEB_SERVER_FORCE_HTTPS`|*true* or *false*| Enforces HTTPS for server connections by redirecting all requests to use the HTTPS protocol. |
243
+
|`BP_WEB_SERVER`|`nginx` or `httpd`| Specifies the web server type, either `nginx` for Nginx or `httpd` for Apache HTTP server. Required when using the autogenerated server configuration file. |
244
+
|`BP_WEB_SERVER_ROOT`| An absolute file path or a file path relative to **/workspace**. | Sets the root directory for the static files. The default is `public`. |
245
+
|`BP_WEB_SERVER_ENABLE_PUSH_STATE`|`true` or `false`| Enables push state routing for your application. Regardless of the route that is requested, **index.html** is always served. Useful for single-page web applications. |
246
+
|`BP_WEB_SERVER_FORCE_HTTPS`|`true` or `false`| Enforces HTTPS for server connections by redirecting all requests to use the HTTPS protocol. |
247
247
248
248
The following environment variables aren't supported.
249
249
@@ -257,8 +257,8 @@ You can configure web server by using a customized server configuration file. Th
257
257
258
258
| Web server | Default configuration file path | How to customize server configuration file path |
| nginx |*nginx.conf* under the root path of your source code. | Use environment variable `BP_NGINX_CONF_LOCATION` to specify the configuration file name. Place the file under the root path of your source code. |
261
-
| httpd |*httpd.conf* under the root path of your source code. | Not supported. |
260
+
|`nginx`|**nginx.conf** under the root path of your source code. | Use environment variable `BP_NGINX_CONF_LOCATION` to specify the configuration file name. Place the file under the root path of your source code. |
261
+
|`httpd`|**httpd.conf** under the root path of your source code. | Not supported. |
262
262
263
263
264
264
Your configuration file must conform to the restrictions described in the following table.
@@ -267,7 +267,7 @@ Your configuration file must conform to the restrictions described in the follow
| Listening port | Web server must listen on port 8080. The service checks the port on TCP for readiness and whether it's live. You must use the templated variable `PORT` in the configuration file. The appropriate port number is injected when the web server is launched. |`listen {{PORT}}`|`Listen "${PORT}"`|
269
269
| Log path | Config log path to the console. |`access_log /dev/stdout`, `error_log stderr`|`ErrorLog /proc/self/fd/2`|
270
-
| File path with write permission | Web server is granted write permission to the */tmp* directory. Configuring the full path requires write permission under the */tmp* directory. | For example: *client_body_temp_path/tmp/client_body_temp*||
270
+
| File path with write permission | Web server is granted write permission to the **/tmp** directory. Configuring the full path requires write permission under the **/tmp** directory. | For example: **client_body_temp_path/tmp/client_body_temp**||
271
271
| Maximum accepted body size of client request | Web server is behind the gateway. The maximum accepted body size of the client request is set to 500 m in the gateway and the value for web server must be less than 500 m. |`client_max_body_size` should be less than 500 m. |`LimitRequestBody` should be less than 500 m. |
272
272
273
273
## Buildpack bindings
@@ -284,14 +284,14 @@ Your deployment of static files to an Azure Spring Apps Enterprise instance may
284
284
-`ERROR: Please check that you're running against the correct path.`
285
285
-`ERROR: failed to detect: no buildpacks participating`
286
286
287
-
The root cause of these errors is that the web server type isn't specified. To resolve these errors, set the environment variable `BP_WEB_SERVER` to *nginx* or *httpd*.
287
+
The root cause of these errors is that the web server type isn't specified. To resolve these errors, set the environment variable `BP_WEB_SERVER` to `nginx` or `httpd`.
288
288
289
289
The following table describes common deployment errors when you deploy static files to Azure Spring Apps Enterprise.
|`112404: Exit code 0: purposely stopped, please refer to https://aka.ms/exitcode`| The web server failed to start. | Validate your server configuration file to see if there's a configuration error. Then, check whether your configuration file conforms to the restrictions described in the [Use a customized server configuration file](#use-a-customized-server-configuration-file) section. |
294
-
|`mkdir() "/var/client_body_temp" failed (13: Permission denied)`| The web server doesn't have write permission to the specified path. | Configure the path under the directory */tmp*; for example: */tmp/client_body_temp*. |
294
+
|`mkdir() "/var/client_body_temp" failed (13: Permission denied)`| The web server doesn't have write permission to the specified path. | Configure the path under the directory **/tmp**; for example: **/tmp/client_body_temp**. |
Copy file name to clipboardExpand all lines: articles/spring-apps/enterprise/how-to-enterprise-service-registry.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ Next, select **GENERATE** to get a sample project for Spring Boot with the follo
95
95
96
96
### Confirm the configuration of dependent libraries for the Service Registry client (Eureka client)
97
97
98
-
Next, confirm that the *pom.xml* file for the project contains the following dependency. Add the dependency if it's missing.
98
+
Next, confirm that the **pom.xml** file for the project contains the following dependency. Add the dependency if it's missing.
99
99
100
100
```xml
101
101
<dependency>
@@ -106,7 +106,7 @@ Next, confirm that the *pom.xml* file for the project contains the following dep
106
106
107
107
### Implement the Service Registry client
108
108
109
-
Add an `@EnableEurekaClient` annotation to the *SampleServiceAApplication.java* file to configure it as a Eureka Client.
109
+
Add an `@EnableEurekaClient` annotation to the **SampleServiceAApplication.java** file to configure it as a Eureka Client.
110
110
111
111
```java
112
112
packagecom.example.Sample.Service.A;
@@ -127,7 +127,7 @@ public class SampleServiceAApplication {
127
127
128
128
### Create a REST endpoint for testing
129
129
130
-
You can now register the service to Service Registry, but you can't verify it until you implement a service endpoint. To create RESTful endpoints that external services can call, add a *ServiceAEndpoint.java* file to your project with the following code.
130
+
You can now register the service to Service Registry, but you can't verify it until you implement a service endpoint. To create RESTful endpoints that external services can call, add a **ServiceAEndpoint.java** file to your project with the following code.
131
131
132
132
```java
133
133
packagecom.example.Sample.Service.A;
@@ -184,7 +184,7 @@ The `--assign-endpoint` argument grants a public IP for validation and enables a
184
184
185
185
After you create a service instance with Spring Boot and create an application in Azure Spring Apps, you deploy the application and confirm the operation. Before that, however, you must bind your application to the Service Registry so that it can get connection information from the registry.
186
186
187
-
Typically, a Eureka client needs to write the following connection information settings in the *application.properties* configuration file of a Spring Boot application so that you can connect to the server:
187
+
Typically, a Eureka client needs to write the following connection information settings in the **application.properties** configuration file of a Spring Boot application so that you can connect to the server:
@@ -234,7 +234,7 @@ You can also bind your application to the Service Registry from the Azure portal
234
234
235
235
### Deploy an application to Azure Spring Apps
236
236
237
-
Now that you bound your application, deploy the Spring Boot artifact file *Sample-Service-A-A-0.0.1-SNAPSHOT.jar* to Azure Spring Apps. To deploy, use the following command:
237
+
Now that you bound your application, deploy the Spring Boot artifact file **Sample-Service-A-A-0.0.1-SNAPSHOT.jar** to Azure Spring Apps. To deploy, use the following command:
238
238
239
239
```azurecli
240
240
az spring app deploy \
@@ -327,7 +327,7 @@ public class SampleServiceBApplication {
327
327
328
328
### Implement service endpoints in Service B
329
329
330
-
Next, implement a new service endpoint (`/invoke-serviceA`) that invokes Service A. Add a *ServiceBEndpoint.java* file to your project with the following code.
330
+
Next, implement a new service endpoint (`/invoke-serviceA`) that invokes Service A. Add a **ServiceBEndpoint.java** file to your project with the following code.
Copy file name to clipboardExpand all lines: articles/spring-apps/enterprise/how-to-set-up-sso-with-azure-ad.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,9 +49,9 @@ First, you must get the assigned public endpoint for Spring Cloud Gateway and AP
49
49
50
50
Register your application to establish a trust relationship between your app and the Microsoft identity platform using the following steps:
51
51
52
-
1. From the *Home* screen, select **Microsoft Entra ID** from the left menu.
53
-
1. Select **App Registrations** under *Manage*, then select **New registration**.
54
-
1. Enter a display name for your application under *Name*, then select an account type to register under *Supported account types*.
52
+
1. From the **Home** screen, select **Microsoft Entra ID** from the left menu.
53
+
1. Select **App Registrations** under **Manage**, then select **New registration**.
54
+
1. Enter a display name for your application under **Name**, then select an account type to register under **Supported account types**.
55
55
1. In *Redirect URI (optional)* select **Web**, then enter the URL from the above section in the text box. The redirect URI is the location where Microsoft Entra ID redirects your client and sends security tokens after authentication.
56
56
1. Select **Register** to finish registering the application.
57
57
@@ -61,7 +61,7 @@ When registration finishes, you'll see the *Application (client) ID* on the **Ov
61
61
62
62
You can also add redirect URIs after app registration by following these steps:
63
63
64
-
1. From your application overview, under *Manage* in the left menu, select **Authentication**.
64
+
1. From your application overview, under **Manage** in the left menu, select **Authentication**.
65
65
1. Select **Web**, then select **Add URI** under *Redirect URIs*.
66
66
1. Add a new redirect URI, then select **Save**.
67
67
@@ -73,7 +73,7 @@ For more information on Application Registration, see [Quickstart: Register an a
73
73
74
74
The application uses a client secret to authenticate itself in SSO workflow. You can add a client secret using the following steps:
75
75
76
-
1. From your application overview, under *Manage* in the left menu, select **Certificates & secrets**.
76
+
1. From your application overview, under **Manage** in the left menu, select **Certificates & secrets**.
77
77
1. Select **Client secrets**, then select **New client secret**.
78
78
1. Enter a description for the client secret, then set an expiration date.
Copy file name to clipboardExpand all lines: articles/spring-apps/enterprise/how-to-use-accelerator.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -284,7 +284,7 @@ To view the newly published accelerator, refresh Dev Tools Portal.
284
284
285
285
### Reference a fragment in your own accelerators
286
286
287
-
Writing and maintaining accelerators can become repetitive and verbose as new accelerators are added. Some people create new projects by copying existing ones and making modifications, but this process can be tedious and error prone. To make the creation and maintenance of accelerators easier, Application Accelerator supports a feature named Composition that enables the reuse of parts of an accelerator, called *fragments*.
287
+
Writing and maintaining accelerators can become repetitive and verbose as new accelerators are added. Some people create new projects by copying existing ones and making modifications, but this process can be tedious and error prone. To make the creation and maintenance of accelerators easier, Application Accelerator supports a feature named *Composition* that enables the reuse of parts of an accelerator, called *fragments*.
288
288
289
289
Use the following steps to reference a fragment in your accelerator:
0 commit comments