We've moved to use nginx to facilitate for getting the file using http and use a shell script to update it locally on the server's machine.
An OSM Pbf manager exposed as HTTP REST API
This docker uses OSM-C-Tools under the hood and Asp.Net to serve an HTTP server. The main functionality is by creating an extract that holds an OSM pbf file. Update it by downloading daily and or minutely updates and stream it back.
In order to use this you'll need docker.
Run docker-compose up -d
Build the container with docker build -t osmpbf-webapi .
When build is complete run docker run -p 8987:80 osmpbf-webapi
Open http://localhost:8987/swagger
to get a simple UI to interact with the pbf extracts mamanger/
This is also available in dockerhub: israelhikingmap/osmctoolswebapi