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

Restrict access to server #20

Open
hannesbochmann opened this issue Nov 28, 2016 · 0 comments
Open

Restrict access to server #20

hannesbochmann opened this issue Nov 28, 2016 · 0 comments

Comments

@hannesbochmann
Copy link

hannesbochmann commented Nov 28, 2016

Is it somehow possible to restrict the access to the tileserver to certain websites so not anybody is able to use the tileserver on other websites? I searched a lot but couldn't find a hint that tessera/tilelive are capable of that. Of course I could install something like iptables and block traffic by referrer etc. but I hope there is a solution that can easily be configured.
There seems to be the possibility to configure domains in /project/config.json (docker run -d -v $(pwd):/data -e DOMAINS='www.example.com' -p 80:80 klokantech/tileserver-mapnik) but it seems like this has nothing to do with restricting access. What is it good for? Couldn't find anything in the tessera documentation.

P.S. I know, to realize such a simple access restriction the server has to rely on data from a client and this data can be spoofed/manipulated. But it would at least give some security.

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

1 participant