Server
Configures how the HTTP server should operate
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 response from 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, 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). 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 Parameter | Environment Variable |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|