Skip to content

Commit 005fe69

Browse files
authored
Added new environment variables for tile expiration to README.md (#299)
1 parent 25a661e commit 005fe69

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,29 @@ docker run \
137137

138138
This will enable a background process that automatically downloads changes from the OpenStreetMap server, filters them for the relevant region polygon you specified, updates the database and finally marks the affected tiles for rerendering.
139139

140+
### Tile expiration (optional)
141+
142+
Specify custom tile expiration settings to control which zoom level tiles are marked as expired when an update is performed. Tiles can be marked as expired in the cache (TOUCHFROM), but will still be served
143+
until a new tile has been rendered, or deleted from the cache (DELETEFROM), so nothing will be served until a new tile has been rendered.
144+
145+
The example tile expiration values below are the default values.
146+
147+
```
148+
docker run \
149+
-p 8080:80 \
150+
-e REPLICATION_URL=https://planet.openstreetmap.org/replication/minute/ \
151+
-e MAX_INTERVAL_SECONDS=60 \
152+
-e UPDATES=enabled \
153+
-e EXPIRY_MINZOOM=13 \
154+
-e EXPIRY_TOUCHFROM=13 \
155+
-e EXPIRY_DELETEFROM=19 \
156+
-e EXPIRY_MAXZOOM=20 \
157+
-v osm-data:/data/database/ \
158+
-v osm-tiles:/data/tiles/ \
159+
-d overv/openstreetmap-tile-server \
160+
run
161+
```
162+
140163
### Cross-origin resource sharing
141164

142165
To enable the `Access-Control-Allow-Origin` header to be able to retrieve tiles from other domains, simply set the `ALLOW_CORS` variable to `enabled`:

0 commit comments

Comments
 (0)