Add custom location url from environment variable

Remove trailing dollar in long and lat placeholder
This commit is contained in:
CasperVerswijvelt
2021-04-21 20:13:49 +02:00
committed by R. Miles McCain
parent 14a7ec68f3
commit 3a01fefcff
5 changed files with 22 additions and 2 deletions

View File

@@ -82,4 +82,13 @@ BLOCK_ALL_IPS=False
# that IP collection is also disabled, and external keys (primary
# keys) aren't supplied. It will also prevent sessions from spanning
# one day to another.
AGGRESSIVE_HASH_SALTING=True
AGGRESSIVE_HASH_SALTING=True
# Custom location url to link to in frontend.
# $LATITUDE will get replaced by the latitude, $LONGITUDE will get
# replaced by the longitude.
# Examples:
# - https://www.openstreetmap.org/?mlat=$LATITUDE&mlon=$LONGITUDE (default)
# - https://www.google.com/maps/search/?api=1&query=$LATITUDE,$LONGITUDE
# - https://www.mapquest.com/near-$LATITUDE,$LONGITUDE
LOCATION_URL=https://www.openstreetmap.org/?mlat=$LATITUDE&mlon=$LONGITUDE