Array_of_ServerConfig

Type: array
No Additional Items

Each item of this array must be:

Type: object

Server specific configuration settings.

No Additional Properties

Type: integer or nullFormat: uint Default: null

Default maximum buffer-size when reading messages into memory.

Type: array

Request handling directives associated with server instance.

No Additional Items

Each item of this array must be:

Type: object

Group of request modules bound to a specific uri path prefix.

No Additional Properties

Type: array

List of additional web components bound to directive.

Items are constructed in the order they're given
meaning middlewares only wrap elements defined before them.

No Additional Items

Each item of this array must be:

Type: object

Module or Middleware Component

Type: object
No Additional Properties

Type: object

Middleware configuration for request processing.

Type: object

Configuration for [actix_authn::basic::BasicAuthSession] Middleware.

No Additional Properties

Type: integer or nullFormat: uint

Cache size linked to authentication lookup

Type: array of string

Htpasswd filepaths to load credentials from.

No Additional Items

Each item of this array must be:

Type: object

Configuration for [actix_authn::basic::BasicAuthSession] Middleware.

No Additional Properties

Type: integer or nullFormat: uint

Cache size linked to authentication lookup

Default is u16::MAX

Type: array of string

Htpasswd filepaths to load credentials from.

No Additional Items

Each item of this array must be:

Type: object

Configuration for [actix_ipware] Middleware.

No Additional Properties

Type: boolean Default: false

Allow untrusted client IP assignments.

Default is false

Type: integer or nullFormat: uint16 Default: null

Number of expected proxy jumps to be trusted.

Type: boolean or null Default: null

Allow fake/broken ips in trusted headers if false.

Default is true

Type: array of string Default: []

Trusted headers to parse client IP address from.

No Additional Items

Each item of this array must be:

Type: array of string Default: []

List of trusted upstream proxy globs.

No Additional Items

Each item of this array must be:

Type: object

Configuration for [actix_ip_filter] Middleware.

No Additional Properties

Type: array of string Default: []

Always denied blacklist of IP Globs.

No Additional Items

Each item of this array must be:

Type: array of string Default: []

Paths globs to specifically exclude from protection.

No Additional Items

Each item of this array must be:

Type: array of string Default: []

Path globs to specifically include for protection.

No Additional Items

Each item of this array must be:

Type: array of string Default: []

Always allowed whitelist of IP Globs.

No Additional Items

Each item of this array must be:

Type: object

Configuration for [actix_modsecurity] Middleware.

No Additional Properties

Type: integer or nullFormat: uint Default: null

Max request body size allowed to be read into memory for scanning.

Type: integer or nullFormat: uint Default: null

Max response body size allowed to be read into memory for scanning.

Type: array of string Default: []

List of additional files to load rules from.

No Additional Items

Each item of this array must be:

Type: string or null Default: null

Plaintext rules contained within a single string.

See [actix_modsecurity::ModSecurity::add_rules] for more info.

Type: object

Configuration for [actix_rewrite] Middleware.

No Additional Properties

Type: integer or nullFormat: uint Default: null

Max number of iterations allowed for looping rulesets.

Default is 10.

Type: array of string Default: []

List of additional files to load rules from.

No Additional Items

Each item of this array must be:

Type: string or null Default: null

Plaintext rules contained within a single string.

See [actix_rewrite::Engine::add_rules] for more info.

Type: object

Configuration for [actix_extensible_rate_limit] Middleware

No Additional Properties

Type: boolean Default: false

Allow request by default if backend fails to respond in time

Default is false

Type: integerFormat: uint64

Request limit

Value must be greater or equal to 0

Type: boolean Default: false

Include ratelimit explanation headers if enabled

Default is false

Type: boolean Default: false

Discriminate ratelimit by IP and Path if enabled

Default is false

Type: object

Configuration for [actix_timeout] Middleware

No Additional Properties

Type: integerFormat: uint64 Default: 0

Timeout duration in miliseconds

Value must be greater or equal to 0

Type: object
No Additional Properties

Type: object

Server specific configuration modules for request processing.

Type: object

Configuration for buitltin redirect service.

Type: integer or nullFormat: uint16

Redirect status code

Default is 302

Type: object

Configuration for builtin static response service.

Type: string or null Default: null

Static body content

Type: string or null Default: null

Content type override

Default is text/html

Type: object Default: {}

Headers to append to response

Each additional property must conform to the following schema

Type: string

Type: integer or nullFormat: uint16 Default: null

Content status code

Default is 200

Type: object

Configuration for [actix_files] service.

Type: integer or nullFormat: uint64 Default: null

Size Threshold for Asyncly Processing Files

Default is u16::MAX (65_365)

Type: boolean Default: false

Allow serving hidden files that begin with a .

Default is false.

Type: boolean Default: false

Allow director indexing to browse files.

Default is false

Type: string or null Default: null

Root filepath for serving files

Overrides [crate::config::ServerConfig::root]

Type: object

Configuration for [actix_revproxy] service.

Type: boolean Default: false

Change host to upstream address host.

Default is false

Type: object Default: {}

Downstream headers to send to client.

Each additional property must conform to the following schema

Type: string

Type: integer or nullFormat: uint32

Initial Connection Window Size

Default is u16::MAX

Type: integer or nullFormat: uint32

Initial Window Size

Default is u16::MAX

Type: integer or nullFormat: uint8

Max number of redirects allowed in client lookup.

Default is 0.

Type: object Default: {}

Upstream headers to send to server.

Each additional property must conform to the following schema

Type: string

Type: boolean or null

Verify SSL Configuration

Default is true

Type: object

Configuration for [actix_fastcgi] service.

Type: string or null

Document-Root assigned to FastCGI.

Overrides [crate::config::ServerConfig::root].

Type: array of integer or null Default: null

Override of [actix_chain::Link::next] behavior.

No Additional Items

Each item of this array must be:

Type: integerFormat: uint16

Value must be greater or equal to 0 and lesser or equal to 65535

Type: string or null

Location associated with modules

Default is /

Type: boolean Default: false

Disable configuration from initialization within server.

Type: array of string Default: []

List of supported index file patterns when requesting resources.

Default is [index.html, ]

No Additional Items

Each item of this array must be:

Type: string

Type: array

List of configurations for binding server addresses.

No Additional Items

Each item of this array must be:

Type: object

Server listener bindings configuration.

No Additional Properties

Type: string or null

Host address server will bind to.

Type: integerFormat: uint16

Port server will bind to.

Value must be greater or equal to 0 and lesser or equal to 65535


SSL configuration for listener.

Type: object

TLS Configuration for server listener.

No Additional Properties

Type: string

TLS Certificate public key.

Type: string

TLS Certificate private key.

Type: object

Configuration settings for logging.

No Additional Properties

Type: boolean Default: false

Disable logging if set to true


Logging level attached to log.

Default is INFO

Type: boolean or null Default: null

Use IpWare Middleware RealIP if enabled.

Default is true

Type: array

Configuration settings for middlware within server instance.

No Additional Items

Each item of this array must be:

Type: object

Middleware configuration for request processing.

Same definition as Middleware

Type: string or null Default: null

Default root filepath for various request handling modules.

Type: boolean or null Default: null

Sanitizes error-messages produced by configured modules when enabled.

Default is true

Type: array

List of domain-names matchers with the server.

Once registered, the server will only respond to
requests with Host set to the relevant matchers.

No Additional Items

Each item of this array must be: