2020-04-30 02:03:05 +00:00
|
|
|
---
|
|
|
|
layout: default
|
|
|
|
title: Server
|
|
|
|
parent: Configuration
|
2020-05-15 23:41:42 +00:00
|
|
|
nav_order: 7
|
2020-04-30 02:03:05 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
# Server
|
|
|
|
|
|
|
|
The server section configures and tunes the http server module Authelia uses.
|
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
server:
|
|
|
|
read_buffer_size: 4096
|
|
|
|
write_buffer_size: 4096
|
2020-05-21 02:20:55 +00:00
|
|
|
path: ""
|
2020-04-30 02:03:05 +00:00
|
|
|
```
|
|
|
|
|
2021-04-11 11:25:03 +00:00
|
|
|
## Options
|
|
|
|
|
|
|
|
### read_buffer_size
|
|
|
|
<div markdown="1">
|
|
|
|
type: integer
|
|
|
|
{: .label .label-config .label-purple }
|
|
|
|
default: 4096
|
|
|
|
{: .label .label-config .label-blue }
|
|
|
|
required: no
|
2021-04-12 03:21:19 +00:00
|
|
|
{: .label .label-config .label-green }
|
2021-04-11 11:25:03 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
Configures the maximum request size. The default of 4096 is generally sufficient for most use cases.
|
|
|
|
|
|
|
|
### write_buffer_size
|
|
|
|
<div markdown="1">
|
|
|
|
type: integer
|
|
|
|
{: .label .label-config .label-purple }
|
|
|
|
default: 4096
|
|
|
|
{: .label .label-config .label-blue }
|
|
|
|
required: no
|
|
|
|
{: .label .label-config .label-green }
|
|
|
|
</div>
|
2020-04-30 02:03:05 +00:00
|
|
|
|
2021-04-11 11:25:03 +00:00
|
|
|
Configures the maximum response size. The default of 4096 is generally sufficient for most use cases.
|
2020-05-21 02:20:55 +00:00
|
|
|
|
2021-04-11 11:25:03 +00:00
|
|
|
### path
|
|
|
|
<div markdown="1">
|
|
|
|
type: string
|
|
|
|
{: .label .label-config .label-purple }
|
|
|
|
default: ""
|
|
|
|
{: .label .label-config .label-blue }
|
|
|
|
required: no
|
|
|
|
{: .label .label-config .label-green }
|
|
|
|
</div>
|
2020-05-21 02:20:55 +00:00
|
|
|
|
|
|
|
Authelia by default is served from the root `/` location, either via its own domain or subdomain.
|
|
|
|
|
2021-04-11 11:25:03 +00:00
|
|
|
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.
|
|
|
|
|
2020-05-21 02:20:55 +00:00
|
|
|
Example: https://auth.example.com/, https://example.com/
|
|
|
|
```yaml
|
|
|
|
server:
|
|
|
|
path: ""
|
|
|
|
```
|
|
|
|
|
|
|
|
Example: https://auth.example.com/authelia/, https://example.com/authelia/
|
|
|
|
```yaml
|
|
|
|
server:
|
|
|
|
path: authelia
|
2021-04-11 11:25:03 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## 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.
|