Skip to content

Commit dc0115e

Browse files
committed
Add max file size and max request size configuration properties in README.md
1 parent 4082a5d commit dc0115e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ To run properly, the iExec Result Proxy requires:
1515

1616
You can configure the iExec Result Proxy with the following properties:
1717

18+
### Main application properties
19+
1820
| Environment variable | Description | Type | Default value |
1921
| --- | --- | --- | --- |
2022
| `IEXEC_RESULT_PROXY_PORT` | Server HTTP port of the result proxy. | Positive integer | `13200` |
@@ -30,6 +32,17 @@ You can configure the iExec Result Proxy with the following properties:
3032
| `IEXEC_IPFS_HOST` | Host to connect to the IPFS node. | String | `127.0.0.1` |
3133
| `IEXEC_IPFS_PORT` | Server port of the IPFS node. | Positive integer | `5001` |
3234

35+
### Spring web application properties
36+
37+
In addition to the aforementioned properties, it is possible to leverage [Spring Common Application Properties](https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html).
38+
More specifically, you may want to configure limits of uploadable file sizes.
39+
In order to do so, you can override the default for the following [Web Properties](https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html#appendix.application-properties.web).
40+
41+
| Environment variable | Description | Type | Default value |
42+
| --- | --- | --- | --- |
43+
| `SPRING_SERVLET_MULTIPART_MAX_FILE_SIZE` | Max file size. | String | `1MB` |
44+
| `SPRING_SERVLET_MULTIPART_MAX_REQUEST_SIZE` | Max request size. | String | `10MB` |
45+
3346
## Health checks
3447

3548
A health endpoint (`/actuator/health`) is enabled by default and can be accessed on the **IEXEC_RESULT_PROXY_PORT**.

0 commit comments

Comments
 (0)