mirror of https://github.com/docker/docs.git
6.2 KiB
6.2 KiB
| title | description | keywords |
|---|---|---|
| Nginx configuration | Learn how to configure an nginx extension | routing, proxy |
Configuring an nginx extension
By default, nginx is used as a proxy, so the following configuration options are available for the nginx extension:
| Option | Type | Description |
|---|---|---|
User |
string | User to be used in the proxy. |
PidPath |
string | Path to the pid file for the proxy service. |
MaxConnections |
int | Maximum number of connections for proxy service. |
ConnectTimeout |
int | Timeout in seconds for clients to connect. |
SendTimeout |
int | Timeout in seconds for the service to send a request to the proxied upstream. |
ReadTimeout |
int | Timeout in seconds for the service to read a response from the proxied upstream. |
IPHash |
bool | Specifies that requests are distributed between servers based on client IP addresses. |
SSLOpts |
string | Options to be passed when configuring SSL. |
SSLDefaultDHParam |
int | Size of DH parameters. |
SSLDefaultDHParamPath |
string | Path to DH parameters file. |
SSLVerify |
string | SSL client verification. |
WorkerProcesses |
string | Number of worker processes for the proxy service. |
RLimitNoFile |
int | Number of maxiumum open files for the proxy service. |
SSLCiphers |
string | SSL ciphers to use for the proxy service. |
SSLProtocols |
string | Enable the specified TLS protocols. |
HideInfoHeaders |
bool | Hide proxy-related response headers. |
AccessLogPath |
string | Path to use for access logs (default: /dev/stdout). |
ErrorLogPath |
string | Path to use for error logs (default: /dev/stdout). |
MainLogFormat |
string | Format to use for main logger. |
TraceLogFormat |
string | Format to use for trace logger. |
This is from Interlock docs - which is correct???????
| Option | Type | Description | Defaults |
|---|---|---|---|
User |
string | user to be used in the proxy | nginx |
PidPath |
string | path to the pid file for the proxy service | /var/run/proxy.pid |
MaxConnections |
int | maximum number of connections for proxy service | 1024 |
ConnectTimeout |
int | timeout in seconds for clients to connect | 600 |
SendTimeout |
int | timeout in seconds for the service to send a request to the proxied upstream | 600 |
ReadTimeout |
int | timeout in seconds for the service to read a response from the proxied upstream | 600 |
SSLOpts |
string | options to be passed when configuring SSL | |
SSLDefaultDHParam |
int | size of DH parameters | 1024 |
SSLDefaultDHParamPath |
string | path to DH parameters file | |
SSLVerify |
string | SSL client verification | required |
WorkerProcesses |
string | number of worker processes for the proxy service | 1 |
RLimitNoFile |
int | number of maxiumum open files for the proxy service | 65535 |
SSLCiphers |
string | SSL ciphers to use for the proxy service | HIGH:!aNULL:!MD5 |
SSLProtocols |
string | enable the specified TLS protocols | TLSv1.2 |
HideInfoHeaders |
bool | Hide proxy-related response headers. | |
KeepaliveTimeout |
string | connection keepalive timeout | 75s |
ClientMaxBodySize |
string | maximum allowed size of the client request body | 1m |
ClientBodyBufferSize |
string | sets buffer size for reading client request body | 8k |
ClientHeaderBufferSize |
string | sets buffer size for reading client request header | 1k |
LargeClientHeaderBuffers |
string | sets the maximum number and size of buffers used for reading large client request header | 4 8k |
ClientBodyTimeout |
string | timeout for reading client request body | 60s |
UnderscoresInHeaders |
bool | enables or disables the use of underscores in client request header fields | false |
ServerNamesHashBucketSize |
int | sets the bucket size for the server names hash tables (in KB) | 128 |
UpstreamZoneSize |
int | size of the shared memory zone (in KB) | 64 |
GlobalOptions |
[]string | list of options that are included in the global configuration | |
HTTPOptions |
[]string | list of options that are included in the http configuration | |
TCPOptions |
[]string | list of options that are included in the stream (TCP) configuration | |
AccessLogPath |
string | Path to use for access logs | /dev/stdout |
ErrorLogPath |
string | Path to use for error logs | /dev/stdout |
MainLogFormat |
string | Format to use for main logger | see default format |
TraceLogFormat |
string | Format to use for trace logger | see default format |