UNCORS configuration
Configuration file for UNCORS reverse proxy
| Type | object |
|---|---|
| File match |
*.uncors.yml
*.uncors.yaml
.uncors.yml
.uncors.yaml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/uncors-configuration/latest.json |
| Source | https://raw.githubusercontent.com/evg4b/uncors/main/schema.json |
Validate with Lintel
npx @lintel/lintel check
Configuration file for uncors reverse proxy
Properties
A list of mappings that describe how to forward requests. Ports are specified in the 'from' URL (e.g., http://localhost:8080).
Global cache configuration
3 nested properties
Expired cache clear time
Cache expiration time
Show debug output
HTTP/HTTPS proxy to provide requests to real server (used system by default)
Definitions
Duration in human-readable format. Supported units are 'h' (hours), 'm' (minutes), 's' (seconds), 'ms' (milliseconds), 'us' (microseconds), 'ns' (nanoseconds).
"3s""1m 30s""500ms""1h 30m 15s 500ms 100us 200ns"
Mock response definition based on file content
Path to the file whose content will be sent in the mock response
Duration in human-readable format. Supported units are 'h' (hours), 'm' (minutes), 's' (seconds), 'ms' (milliseconds), 'us' (microseconds), 'ns' (nanoseconds).
HTTP headers definition
HTTP headers definition
Mocked request definition
Mocked request path
Mock response definition
HTTP headers definition
HTTP query parameters definition
OPTIONS request handling configuration
Disable OPTIONS request handling and all requests will be proxied to the target server
HTTP headers definition
HTTP query parameters definition
Mock response definition based on raw content
Content which will be sent in the mock response
Duration in human-readable format. Supported units are 'h' (hours), 'm' (minutes), 's' (seconds), 'ms' (milliseconds), 'us' (microseconds), 'ns' (nanoseconds).
HTTP headers definition
Script request handler definition
Request path to handle with script
Path to script file
HTTP headers definition
HTTP query parameters definition
Inline script code
Static serving directory definition
Path to the folder from which the static files will be served
Path where the static files will be served
The file witch will be returned if the requested file is not found. It should be a relative path within the dir folder
HTTP response status code
200404500