This is an automated email from the git hooks/post-receive script. rubund-guest pushed a commit to branch master in repository osm-tile-server.
commit 6ecd64d9e419db6fdd1bafbf39c710525d9a3903 Author: Ruben Undheim <ruben.undh...@gmail.com> Date: Wed Nov 4 00:45:36 2015 +0100 Add config file for tilelite. Enable caching for tilelite --- debian/osm-tile-server-tilelite.install | 1 + etc/osm-tile-server-tilelite.conf | 49 +++++++++++++++++++++++++++++++++ etc/tilelite.wsgi | 2 +- 3 files changed, 51 insertions(+), 1 deletion(-) diff --git a/debian/osm-tile-server-tilelite.install b/debian/osm-tile-server-tilelite.install index f56b358..e2c955a 100644 --- a/debian/osm-tile-server-tilelite.install +++ b/debian/osm-tile-server-tilelite.install @@ -1,2 +1,3 @@ etc/tilelite.wsgi usr/share/osm-tile-server-tilelite/wsgi/ etc/apache/osm-tile-server-tilelite.conf etc/apache2/sites-available/ +etc/osm-tile-server-tilelite.conf etc/ diff --git a/etc/osm-tile-server-tilelite.conf b/etc/osm-tile-server-tilelite.conf new file mode 100644 index 0000000..780855c --- /dev/null +++ b/etc/osm-tile-server-tilelite.conf @@ -0,0 +1,49 @@ +# +## TileLite Server configuration example +# + +# Note: passing a configuration file to TileLite is optional + +# +## TileLite will look for two sections: +# + +# 1) [tiles] +# 2) [cache] + +# +## Variable options: +# + +# size: 256 (tile size in pixels usually 64, 256, 512, or multiples thereof) +# buffer_size: 0 - N (where N is the size of your tile) +# format: png or jpeg +# paletted: yes or no (if true Mapnik will render using png256 or 8bit png format) +# max_zoom: 1 - N (where N is commonly a maximum of 22 levels) +# debug: on (prints tile events to stderr if on, silent if off) +# watch_mapfile: on or off (whether the mapfile should be reloaded when edited) +# watch_interval: 1 - N (interval in seconds for checking for changes in mapfile) +# max_failures: 0 - N (number of times to attempt reloading a changed mapfile) + +# caching: on or off +# cache_path: the full or relative path to a directory in which to cache tiles +# cache_force: on or off (if true will re-render and re-cache all requested tiles) + +# The below example lists the default values for each variable. +# Change these to alter the standard behavior of TileLite. + +[tiles] +size = 256 +buffer_size = 128 +format = png +paletted = no +max_zoom = 22 +debug = on +watch_mapfile = off +watch_interval = 2 +max_failures = 6 + +[cache] +caching = on +cache_path = /var/cache/osm-tile-server-tilelite +cache_force = off diff --git a/etc/tilelite.wsgi b/etc/tilelite.wsgi index 6dc83ed..63053cf 100644 --- a/etc/tilelite.wsgi +++ b/etc/tilelite.wsgi @@ -1,4 +1,4 @@ from tilelite import Server -application = Server('/var/lib/osm-tile-server-base/tilesets/default/style.xml') +application = Server('/var/lib/osm-tile-server-base/tilesets/default/style.xml','/etc/osm-tile-server-tilelite.conf') -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/osm-tile-server.git _______________________________________________ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel