forked from Ahlzen/TopOSM
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathset-toposm-env.templ
46 lines (35 loc) · 1.25 KB
/
set-toposm-env.templ
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
# Configures the environment for TopOSM rendering.
# Change these settings to match your setup.
# Postgres settings
export DB_HOST="localhost"
# InfluxDB settings
export INFLUX_SSL=0
export INFLUX_HOST="localhost"
export INFLUX_PORT=8086
export INFLUX_USER="toposm"
export INFLUX_PASS="toposm"
export INFLUX_DB="toposm"
# Output directories
export BASE_TILE_DIR="/srv/tiles" # output directory
export TEMP_DIR="/srv/usgs/cache" # preprocessed data and temporary files
# Where the minutely update file lives.
export MINUTELY_STATE_FILE="/path/to/state.txt"
# Extra TrueType fonts directory for Mapnik
# (this can be left blank)
export EXTRA_FONTS_DIR="/usr/share/fonts/truetype"
# Render settings
export TILE_SIZE=256
export BORDER_WIDTH=128
export ERROR_LOG="errors.log"
# Mapnik layers to cache after rendering and reuse as needed. Comma-separated
# list. e.g. CACHE_LAYERS="contours,landcoverrelief"
export CACHE_LAYERS="contours"
# Tile serving settings
export AWS_ACCESS="ABCDEFGHIJKLMNOPQRS"
export AWS_SECRET="abcdefghijklmnopqrstuvwxyz0123456789ABCD"
export AWS_BUCKET="foo.example.com"
# Enable/disable extra debug/diagnostic messages during rendering
export TOPOSM_DEBUG=1
# Used to check that the env is set. Don't modify.
export TOPOSM_ENV_SET=1