Couper Documentation

edge

Files

The files blocks configure the file serving. Can be defined multiple times as long as the base_path is unique.

Block nameContextLabel
filesServer BlockOptional

Attributes

NameTypeDefaultDescription
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

NameDescription
cors

Configures CORS settings (zero or one).