1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 |
# Hammer — secrets template. Copy to .env and fill in. Never commit .env.
#
# cp .env.example .env
#
# .env is loaded at startup and its values are expanded into the YAML config
# wherever ${VAR} appears (see config.local.yaml / share/config/config.yaml).
# OpenCage geocoding token — turns a city name into coordinates.
# The only key you truly need to make city search work.
# Get a free one at https://opencagedata.com (2,500 requests/day).
OPENCAGE_TOKEN=your_opencage_token_here
# MaxMind GeoLite2 license key — only needed to DOWNLOAD the database.
# Free with registration at https://www.maxmind.com. Used like:
# curl -o data/GeoLite2-City.tar.gz -u "ACCOUNT_ID:LICENSE_KEY" \
# "https://download.maxmind.com/geoip/databases/GeoLite2-City/download?suffix=tar.gz"
# then extract the .mmdb and point GEOLITE2_PATH at it.
GEOLITE2_LICENSE_KEY=your_maxmind_license_key_here
# Path to the MaxMind GeoLite2-City database FILE (the .mmdb, not a key).
# Guesses a visitor's city from their IP. Optional for local use — localhost
# has no public IP, so it can be left empty and you just search by name.
# In production prefer an ABSOLUTE path so it resolves regardless of the
# service's working directory, e.g. /hammer/data/GeoLite2-City.mmdb
GEOLITE2_PATH=data/GeoLite2-City.mmdb
# Upstream weather data source. The default points at the public wttr.in and
# needs no key. To use WorldWeatherOnline directly, register for a token, set
# WWO_KEY, and adjust the URL accordingly.
WWO_BASE_URL=http://wttr.in/{lat},{lon}?format=j1&lang={lang}
WWO_KEY=
|