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

Serve robots.txt file #947

Open
Empty2k12 opened this issue Aug 8, 2023 · 3 comments
Open

Serve robots.txt file #947

Empty2k12 opened this issue Aug 8, 2023 · 3 comments

Comments

@Empty2k12
Copy link

I am running a tileserver-gl instance on the internet and have recently noticed that Google has started indexing multiple files from my tileserver. This is not my intention, and it seems like it's not super easy to configure a robots.txt with this project. I would have to run a second Docker container which runs nginx or some other file-server and configure my reverse proxy to serve it when tileserver.my.tld/robots.txt is requested. This is quite cumbersome.

The simplest fix would be to serve a robots.txt when it's available somewhere (configurable) in the file tree, and return a 404 on the robots.txt route if it's not found. This way, you could easily mount a read-only robots.txt into the container.

@acalcutt
Copy link
Collaborator

I wonder if anyone considers google indexing their tile server a good thing, should we just put a default robots.txt in "public/resources" which gets served as root of the site right now?

As for a configurable option, i'm not really sure the best way to approach it.

@Empty2k12
Copy link
Author

@acalcutt Completely blocking indexing is also fine in my opinion, but I am not sure if there are cases where people would want their tile server to be indexed. But we could just serve a noindex robots.txt and have people override that using their reverse proxy setup should indexing be wanted.

@yetzt
Copy link

yetzt commented May 14, 2024

i always liked googling for intitle:"TileServer GL - Server for vector and raster maps with GL styles" and seeing what maps people make. ;)

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

No branches or pull requests

3 participants