Skip to content

Commit

Permalink
Improved configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Delattre committed Jul 29, 2021
1 parent 6f93441 commit 27c470c
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 15 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,22 +120,22 @@ jobs:
- name: Set up Apache HTTP Server
run: |
sudo mkdir --parents /run/renderd /var/cache/renderd/tiles
mkdir --parents examples/example-map/leaflet
mkdir --parents utils/example-map/leaflet
curl --silent "https://unpkg.com/leaflet@1.7.1/dist/leaflet.js" \
> examples/example-map/leaflet/leaflet.min.js
> utils/example-map/leaflet/leaflet.min.js
curl --silent "https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" \
> examples/example-map/leaflet/leaflet.css
> utils/example-map/leaflet/leaflet.css
sudo ln --symbolic \
"${PWD}/examples/example-map" \
"${PWD}/utils/example-map" \
/var/www/
sudo ln --symbolic \
"${PWD}/examples/config/renderd/renderd.conf.dist" \
"${PWD}/etc/renderd/renderd.conf.examples" \
/etc/renderd.conf
sudo ln --symbolic \
"${PWD}/examples/config/apache2/renderd.conf.dist" \
"${PWD}/etc/apache2/renderd.conf" \
/etc/apache2/conf-enabled/renderd.conf
sudo ln --symbolic \
"${PWD}/examples/config/apache2/renderd-example-map.conf.dist" \
"${PWD}/etc/apache2/renderd-example-map.conf" \
/etc/apache2/conf-enabled/renderd-example-map.conf
echo "LoadModule tile_module /usr/lib/apache2/modules/mod_tile.so" \
| sudo tee --append /etc/apache2/mods-enabled/mod_tile.load
Expand Down
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ renderd_SOURCES = \
$(STORE_SOURCES)
renderd_CXXFLAGS = $(MAPNIK_CFLAGS)
renderd_LDADD = $(PTHREAD_CFLAGS) $(MAPNIK_LDFLAGS) $(STORE_LDFLAGS) -liniparser
renderd_DATA = renderd.conf
renderd_DATA = etc/renderd/renderd.conf

render_speedtest_SOURCES = \
src/speedtest.cpp \
Expand Down
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Configuration
After you either installed the software packages or copiled the software
yourself, you can continue with the configuration. For your convenience
example configuration files are distributed with the software packages and
located in the ``examples/config`` directory of this repository.
located in the ``etc`` directory of this repository.

A very basic example-map and data can be found in the ``example-map``
directory. For a simple test copy it over to ``/var/www/example-map``.
Expand All @@ -99,9 +99,9 @@ Copy the configuration files to their place, too:

::

$ cp examples/config/renderd.conf.dist /etc/renderd.conf
$ cp examples/config/apache2/renderd.conf.dist /etc/apache2/conf-available/renderd.conf
$ cp examples/config/apache2/renderd-example-map.conf.dist /etc/apache2/conf-available/renderd-example-map.conf
$ cp etc/renderd/renderd.conf /etc/renderd.conf
$ cp etc/apache2/renderd.conf /etc/apache2/conf-available/renderd.conf
$ cp etc/apache2/renderd-example-map.conf /etc/apache2/conf-available/renderd-example-map.conf

Enable the configuration:

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Alias /mod_tile /var/cache/renderd/tiles

<Directory /var/cache/renderd/tiles>

Options Indexes FollowSymLinks MultiViews
Expand Down
2 changes: 1 addition & 1 deletion renderd.conf → etc/renderd/renderd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ num_threads=4
tile_dir=/var/cache/renderd/tiles

[mapnik]
plugins_dir=/usr/lib/mapnik/3.0/input
plugins_dir=/usr/lib/mapnik/3.1/input
font_dir=/usr/share/fonts/truetype
font_dir_recurse=true

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 27c470c

Please sign in to comment.