This is so levels like warn and error can be used to exclude info or warn messages. Additionally there is a reasonable refactoring of logging moving the log config options to the logging key because there are a significant number of log options now. This also decouples the expvars and pprof handlers from the log level, and they are now configured by server.enable_expvars and server.enable_pprof at any logging level.
2.4 KiB
layout | title | parent | nav_order |
---|---|---|---|
default | Server | Configuration | 9 |
Server
The server section configures and tunes the http server module Authelia uses.
Configuration
server:
read_buffer_size: 4096
write_buffer_size: 4096
path: ""
enable_pprof: false
enable_expvars: false
Options
read_buffer_size
Configures the maximum request size. The default of 4096 is generally sufficient for most use cases.
write_buffer_size
Configures the maximum response size. The default of 4096 is generally sufficient for most use cases.
path
Authelia by default is served from the root /
location, either via its own domain or subdomain.
Modifying this setting will allow you to serve Authelia out from a specified base path. Please note that currently only a single level path is supported meaning slashes are not allowed, and only alphanumeric characters are supported.
Example: https://auth.example.com/, https://example.com/
server:
path: ""
Example: https://auth.example.com/authelia/, https://example.com/authelia/
server:
path: authelia
enable_pprof
Enables the go pprof endpoints.
enable_expvars
Enables the go expvars endpoints.
Additional Notes
Buffer Sizes
The read and write buffer sizes generally should be the same. This is because when Authelia verifies if the user is authorized to visit a URL, it also sends back nearly the same size response as the request. However you're able to tune these individually depending on your needs.