Server
Configures how the HTTP server should operate
Example
-
YAML
-
JSON
server:
bindHost: 0.0.0.0
port: 8080
rootPath: /maps
timeout: 30
gzip: true
headers:
X-Served-By: tilegroxy
{
"server": {
"bindHost": "0.0.0.0",
"port": 8080,
"rootPath": "/maps",
"timeout": 30,
"gzip": true,
"headers": {
"X-Served-By": "tilegroxy"
}
}
}
Configuration
| Parameter | Description | Type | Required | Default |
|---|---|---|---|---|
|
IP address to bind HTTP server to |
string |
No |
127.0.0.1 |
|
Port to bind HTTP server to |
int |
No |
8080 |
|
The root HTTP Path to serve all requests under. |
string |
No |
/ |
|
The HTTP Path to serve tiles under in addition to RootPath. The defaults will result in a path that looks like /tiles/{layer}/{z}/{x}/{y} |
string |
No |
tiles |
|
The HTTP Path to serve the documentation website under in addition to RootPath. Supply an empty string to disable serving documentation. Ignored when Production is set |
string |
No |
docs |
|
Include these headers in all responses from the server. For cross-origin headers prefer CORS, which can vary the response by request origin. For |
map[string]string |
No |
None |
|
Hardens operation for usage in production. For instance, controls serving splash page, documentation, the layer preview page, the default favicon, x-powered-by header. |
bool |
No |
true |
|
How long (in seconds) a request can be in flight before we cancel it and return an error |
uint |
No |
60 |
|
Whether to gzip compress HTTP responses |
bool |
No |
false |
|
How long (in seconds) the whole shutdown sequence gets. See Shutdown |
uint |
No |
Timeout plus DrainDelay |
|
How long (in seconds) to report unready before draining requests. See Shutdown |
uint |
No |
5 |
|
Configuration for enabling TLS (HTTPS) and optionally requiring client certificates. Don’t specify to operate without encryption (the default) |
No |
None |
|
|
Configuration to turn on endpoints that describe layers using the TileJSON format |
No |
None |
|
|
Configuration for returning cross-origin resource sharing headers so browsers on other origins can use the tiles |
No |
None |
|
|
Configuration for returning a |
No |
None |
|
|
Configuration for trusting the client IP, host, protocol, port, and path prefix reported by a CDN, load balancer, or reverse proxy in front of tilegroxy |
No |
None |
| Configuration Parameter | Environment Variable |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|