From 38f3d67eb385dfb93b1fe9a7301225b1e4993b77 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Wed, 27 Jul 2022 14:23:49 +0200 Subject: allow embedding a Thunderforest API key --- doc/administration/configuration.rst | 9 +++++++++ fietsboek/templates/layout.jinja2 | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/doc/administration/configuration.rst b/doc/administration/configuration.rst index 3927540..272ac71 100644 --- a/doc/administration/configuration.rst +++ b/doc/administration/configuration.rst @@ -74,3 +74,12 @@ Most of the configuration is in the ``[app:main]`` category and looks like this: * ``email.username`` and ``email.password`` can be used to set the login information for the SMTP server. +* ``thunderforest.api_key`` can be set to an API key of `Thunderforest + `__ to enable support for the OpenCycleMap, + Landscape and Outdoors maps. + +.. warning:: + + The API key will be embedded in the source of the website, therefore it is + possible for visitors to "steal" the API key. Keep that in mind when + setting an API key for a publicly accessible site! diff --git a/fietsboek/templates/layout.jinja2 b/fietsboek/templates/layout.jinja2 index 83a8f33..984a790 100644 --- a/fietsboek/templates/layout.jinja2 +++ b/fietsboek/templates/layout.jinja2 @@ -21,6 +21,14 @@ -- cgit v1.2.3