opsick
Public Attributes | List of all members
opsick_config_hostsettings Struct Reference

#include <config.h>

Public Attributes

uint8_t log
 
uint16_t port
 
uint8_t threads
 
uint64_t max_clients
 
uint64_t max_header_size
 
uint64_t max_body_size
 

Detailed Description

The host section of the opsick config file (port number, max. HTTP header size, etc...).

Member Data Documentation

◆ log

uint8_t opsick_config_hostsettings::log

Whether or not to log HTTP requests.

Set this to 1 to log all HTTP requests.

[DEFAULT] 0

◆ max_body_size

uint64_t opsick_config_hostsettings::max_body_size

The maximum request body size (use this to protect your db from growing too big!).

[DEFAULT] 16MB (1024 * 1024 * 16 B).

◆ max_clients

uint64_t opsick_config_hostsettings::max_clients

The maximum number of clients that are allowed to connect concurrently.

[DEFAULT] Computed automatically by facil.io (if this value is left at 0).

◆ max_header_size

uint64_t opsick_config_hostsettings::max_header_size

The maximum HTTP header size.

[DEFAULT] 16KB (1024 * 16B).

◆ port

uint16_t opsick_config_hostsettings::port

The port number on which opsick should listen for requests.

[DEFAULT] 6677

◆ threads

uint8_t opsick_config_hostsettings::threads

The number of threads to dedicate to opsick.

[DEFAULT] 2


The documentation for this struct was generated from the following file: