Overv / openstreetmap-tile-server

Docker file for a minimal effort OpenStreetMap tile server
Apache License 2.0
1.23k stars 485 forks source link

docker vs local installation #375

Open december1990 opened 1 year ago

december1990 commented 1 year ago

We have a server with 64gb of Ram, and we want to have our own osm tile server and osm routing server which is also available using docker and can be installed locally, I have following questions regarding that (considering that we are just serving great Britain area)

1) should we use docker or local installation for production usages ? 2) how we can restrict the url https://myserver/{z}/{x}/{y}.png to only our users 3) is 64gb of Ram enough for both tile and routing services for Great Britain

thanks in advance

Istador commented 1 year ago
  1. That's your decision to make. This project is about the docker image and not about the manual installation. I personally prefer docker images because they are easier to use and maintain and I like the small security benefit of running it in an extra isolated sandbox.

  2. You could put a HTTP proxy in-front of the container that filters out all requests with referrers not coming from your domain(s). (Note: you should not block requests without referrer, as those could come from legitimate users that block referrers for privacy or other reasons.) And also you could add CORS headers to the responses and such things.

  3. Sounds more than enough to me.