-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.toml.example
47 lines (40 loc) · 1.06 KB
/
config.toml.example
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
47
# Sample LOD config file
[instance]
port = 1337
# config supports environment variable expansion
admin_token = "${ADMIN_TOKEN}"
[[proxies]]
name = "maps"
# dynamic endpoint via special {e} parameter accessible via
# http://lod:1337/maps/{e}/{z}/{x}/{y}.pbf
tile_url = "http://tegola.example.com:8080/maps/{e}/{z}/{x}/{y}.pbf"
cors_origins = "*"
del_headers = ["Tegola-Cache"]
[[proxies.add_headers]]
name = "Referer"
value = "https://yoursite.com/"
[[proxies.params]]
name = "osm_id"
default = "0"
[proxies.cache]
mem_enabled = true
mem_cap = 200
mem_ttl = "2h"
redis_enabled = true
redis_ttl = "48h"
redis_url = "redis://localhost:6379/0"
# dynamic endpoint name in cache key (replaces {e})
key_template = "basemap:{e}:{z}:{x}:{y}:{osm_id}"
[[proxies]]
name = "tornadoes"
tile_url = "http://tegola.example.com:8080/maps/tornadoes/{z}/{x}/{y}.pbf"
cors_origins = "*"
del_headers = ["Tegola-Cache"]
[proxies.cache]
mem_enabled = true
mem_cap = 200
mem_ttl = "1h"
redis_enabled = true
redis_ttl = "48h"
redis_url = "redis://localhost:6379/0"
key_template = "tornadoes:{z}:{x}:{y}"