You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi guys,
I installed the current version of tegola on my Ubuntu 24.04.1 LTS. But I have issue with my tegola server. It does not see hostname. I mean it is missing in network responses, however, I wrote that in tegola config file. What could it be?
This is my tegola config:
[webserver]
port = ":9000"
hostname = "localhost"
[[providers]]
name = "my_geodb"
type = "postgis"
uri = "postgresql://postgres:123456@localhost:5433/my_geodb?sslmode=disable"
@Eugene015 hey there. This was surfaced in another issue: #1022. I have fixed it in this PR: #1023. I have not yet cut the patch release as I'm waiting on the following PR to also land: #1024. In the meantime you can test the fix the following ways:
Hi guys,
I installed the current version of tegola on my Ubuntu 24.04.1 LTS. But I have issue with my tegola server. It does not see hostname. I mean it is missing in network responses, however, I wrote that in tegola config file. What could it be?
This is my tegola config:
[webserver]
port = ":9000"
hostname = "localhost"
[[providers]]
name = "my_geodb"
type = "postgis"
uri = "postgresql://postgres:123456@localhost:5433/my_geodb?sslmode=disable"
[[providers.layers]]
name = "kyiv"
table = "public.kyiv"
geometry_field = "wkb_geometry"
geometry_type = "MULTIPOLYGON"
srid = 4326
id_field = "ogc_fid"
[[maps]]
name = "kyiv_map"
[[maps.layers]]
name = "kyiv_layer"
provider_layer = "my_geodb.kyiv"
And this is the response example on http://localhost:9000/maps/kyiv_map/style.json:
{
"version": 8,
"name": "kyiv_map",
"center": [
0,
0
],
"sources": {
"kyiv_map": {
"type": "vector",
"url": "http:///capabilities/kyiv_map.json"
}
},
"layers": [
{
"id": "kyiv_layer",
"source": "kyiv_map",
"source-layer": "kyiv_layer",
"type": "fill",
"layout": {
"visibility": "visible"
},
"paint": {
"fill-color": "rgba(45,175,193,0.1)",
"fill-outline-color": "#2dafc1"
}
}
]
}
The text was updated successfully, but these errors were encountered: