Files
The files blocks configure the file serving. Can be defined multiple times as long as the base_path is unique.
| Block name | Context | Label | 
|---|---|---|
files | Server Block | Optional | 
Attributes
| Name | Type | Default | Description | 
|---|---|---|---|
access_control | tuple (string)  | [] | Sets predefined access control for this block context.  | 
add_response_headers | object  | -  | Key/value pairs to add as response headers in the client response.  | 
base_path | string  | -  | Configures the path prefix for all requests.  | 
custom_log_fields | object  | -  | Log fields for custom logging. Inherited by nested blocks.  | 
document_root | string  | -  | Location of the document root (directory).  | 
error_file | string  | -  | Location of the error file template.  | 
remove_response_headers | tuple (string)  | [] | List of names to remove headers from the client response.  | 
set_response_headers | object  | -  | Key/value pairs to set as response headers in the client response.  | 
Nested Blocks
| Name | Description | 
|---|---|
cors | Configures CORS settings (zero or one).  |