Client
Configures how the HTTP client should operate for requests that require calling an external HTTP(s) server.
Example
-
YAML
-
JSON
client:
userAgent: my_app/1.0
timeout: 30
statusCodes:
- 200
- 204
headers:
X-Api-Key: my-api-key
{
"client": {
"userAgent": "my_app/1.0",
"timeout": 30,
"statusCodes": [
200,
204
],
"headers": {
"X-Api-Key": "my-api-key"
}
}
}
Configuration
| Parameter | Description | Type | Required | Default |
|---|---|---|---|---|
|
The user agent to include in outgoing http requests. |
string |
No |
tilegroxy/VERSION |
|
The maximum Content-Length to allow incoming responses |
int |
No |
10 MiB |
|
Allow responses that are missing a Content-Length header |
bool |
No |
false |
|
The content-types to allow remote servers to return. Anything else will be interpreted as an error. See Content Type for details |
string[] |
No |
image/png, image/jpg, image/jpeg, application/vnd.mapbox-vector-tile, application/x-protobuf, application/vnd.maplibre-tile, application/vnd.maplibre-vector-tile |
|
The status codes from the remote server to consider successful |
int[] |
No |
200 |
|
How long (in seconds) to wait for a remote server to respond, including reading the body, before giving up and returning an error. 0 disables the timeout, in which case only the server |
int |
No |
10 |
|
Include these headers in requests |
map[string]string |
No |
None |
|
Replaces |
map[string]string |
No |
{"application/octet-stream": ""} |
|
The ID of the TLS profile used to validate the certificates of remote servers. |
string |
No |
system |
|
The ID of the TLS profile holding the certificate to present to remote servers that require mutual TLS |
string |
No |
The profile from |
|
Whether to present a certificate to remote servers. Set this to false in a layer to opt out of an |
bool |
No |
true if |
| Configuration Parameter | Environment Variable |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|