EzyHTTP Server Properties
Updated at 1685686473000EzyHTTP provides a list of properites:
Property | Default Value | Description | |
1 | server.host | 0.0.0.0 | Server loopback address |
2 | server.port | 8080 | Server port |
3 | server.max_threads | 256 | Maximum number of threads in a http server |
4 | server.min_threads | 16 | Minimum number of threads in a http server |
5 | server.idle_timeout | 150000 millis | Maximum of a session idle time |
6 | server.multipart.location | tmp | Temporarily folder for file upload |
7 | server.multipart.file_size_threshold | 5MB | The size threshold after which files will be written to disk |
8 | server.multipart.max_file_size | 5MB | The maximum size allowed for uploaded files |
9 | server.multipart.max_request_size | 5MB | The maximum size allowed for multipart/form-data requests |
10 | cors.enable | false | Enable Cross origin or not |
11 | cors.allowed_origins | Allowed cross origin URLs | |
12 | cors.allowed_headers | Allowed cross origin headers | |
13 | management.enable | false | Enable management or not |
14 | management.host | 0.0.0.0 | Management loopback address |
15 | management.port | 18080 | Management port |
16 | management.uris | empty | Specific management URIs |
17 | management.uris_expose | false | Expose all resources uri or not |
18 | resources.enable | false | Enable resources to download or not |
19 | resources.locations | static | Resources locations |
20 | resources.location | static | Resources location |
21 | resources.pattern | empty | Pattern to filter resources |
22 | resources.download.capacity | 100000 | Max download request queue |
23 | resources.dowload.thread_pool_size | Processors x 2 | Download thread pool size |
24 | resources.download.buffer_size | 1024 | Download buffer size |
25 | resources.upload.enable | false | Enable or disable upload |
26 | resources.upload.capacity | 100000 | Capacity of upload queu size |
27 | resources.upload.thread_pool_size | Processors x 2 | Upload thread pool size |
28 | resources.upload.buffer_size | 1024 | Upload buffer size |
29 | view.template.mode | HTML | Template mode |
30 | view.template.prefix | templates/ | Template file prefix |
31 | view.template.suffix | .html | Template file suffix |
32 | view.template.cache_ttl_ms | 3600000 | Time to Live in millis for template caching |
33 | view.template.cacheable | true | Cache view template or not |
34 | view.template.messages_location | messages | Message files location |
35 | async.default_timeout | 0 | Default timeout for asynchronous API |
Next
You can see how to serve static files with EzyHTTP.