LogDoc
Docs Configuration

Configuration

LogDoc uses YAML configuration files to control every aspect of its behavior. This guide covers the main configuration file structure and available options.

Configuration File

The main configuration file is located at /etc/logdoc/logdoc.yml. Here's a basic configuration example:

yaml server: host: 0.0.0.0 port: 8080 workers: 4 storage: path: /var/lib/logdoc

Server Options

The following options are available in the server section:

Option
Type
Default
Description
host
string
0.0.0.0
Bind address for the HTTP server
port
integer
8080
HTTP server port number
workers
integer
auto
Number of worker threads (auto = CPU count)
max_connections
integer
1024
Maximum concurrent connections

Environment Variables

Configuration values can also be set via environment variables. Environment variables take precedence over file-based configuration.

bash export LOGDOC_HOST=0.0.0.0 export LOGDOC_PORT=8080 export LOGDOC_WORKERS=4 export LOGDOC_STORAGE_PATH=/var/lib/logdoc