Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The issue with hostname within the endpoints #1025

Closed
Eugene015 opened this issue Dec 27, 2024 · 3 comments
Closed

The issue with hostname within the endpoints #1025

Eugene015 opened this issue Dec 27, 2024 · 3 comments

Comments

@Eugene015
Copy link

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"
}
}
]
}

@ARolek
Copy link
Member

ARolek commented Dec 27, 2024

@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:

Please give this a test and report back if your issue is fixed. We will cut a new patch release soon!

@ARolek
Copy link
Member

ARolek commented Jan 2, 2025

Closing issue as this is fixed in master and will be part of this week's release.

@ARolek ARolek closed this as completed Jan 2, 2025
@Eugene015
Copy link
Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants