Skip to content

Commit 9d20626

Browse files
authored
Merge pull request #99 from iExecBlockchainComputing/bugfix/add-file-size-and-request-size-config-in-readme
Add max file size and max request size configuration properties in README.md
2 parents 4082a5d + 1ef23d3 commit 9d20626

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file.
99
- Check result hash before uploading. (#101)
1010
### Bug Fixes
1111
- Fix and harmonize `Dockerfile entrypoint` in all Spring Boot applications. (#98)
12+
- Describe upload limits configuration in README.md. (#99)
1213
### Quality
1314
- Upgrade to Gradle 8.2.1 with up-to-date plugins. (#97)
1415
### Dependency Upgrades

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)