-
-
Notifications
You must be signed in to change notification settings - Fork 224
Closed
Description
My tegola instance is behind a haproxy that handles my ssl termination/offloading. To meet the requirement that there is no mixed mode (http/https) in the front end, I need to have the URL's being returned within the capabilities.json upgrade the proto from http to https.
To do this, I was told to use the hostname = directive in the `[webserver]' section which I've done below:
[webserver]
port = ":9001"
hostname = "https://myhost.tld"
...
This however results in malformed url's in the capabilites.json
{
"attribution":"",
"bounds":[-180,-85.0511,180,85.0511],
"center":[0,0,0],
"format":"pbf",
"minzoom":5,
"maxzoom":24,
"name":"locationdata",
"description":null,
"scheme":"xyz",
"tilejson":"2.1.0",
"tiles":[
"http://https:%2F%2Fmyhost.tld/maps/location/{z}/{x}/{y}.pbf"
],
"grids":[],
"data":[],
"version":"1.0.0",
"template":null,
"legend":null,
"vector_layers" [
{
"version":2,
"extent":4096,
"id":"subscribers",
"name":"subscribers",
"geometry_type":"point",
"minzoom":5,
"maxzoom":24,
"tiles":[
"http://https:%2F%2Fmyhost.tld/maps/location/subscribers/{z}/{x}/{y}.pbf"
]
},
{
"version":2,
"extent":4096,
"id":"subscriber_areas",
"name":"subscriber_areas",
"geometry_type":"line",
"minzoom":9,
"maxzoom":24,
"tiles":[
"http://https:%2F%2Fmyhost.tld/maps/radiolocation/subscribers/{z}/{x}/{y}.pbf"
]
}
]
}
If it makes any difference I'm running FreeBSD 14.1 as the OS, with tegola from a fresh (today) git pull
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done