Skip to content

Commit 632f174

Browse files
committed
Redirect osm -> ohm tilesets
1 parent ffc1568 commit 632f174

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

hetzner/traefik/traefik.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@ http:
5757
replacement: "https://${1}/ui/search.html"
5858
permanent: true
5959

60+
replace-osm-to-ohm:
61+
replacePathRegex:
62+
regex: "^/capabilities/osm\\.json$"
63+
replacement: "/capabilities/ohm.json"
64+
65+
replace-osm-tiles-to-ohm:
66+
replacePathRegex:
67+
regex: "^/maps/osm/(.*)$"
68+
replacement: "/maps/ohm/${1}"
69+
6070
routers:
6171
#################### Production ####################
6272
vtiles-production-router:
@@ -160,6 +170,8 @@ http:
160170
certResolver: letsencrypt
161171
middlewares:
162172
- secure-headers-allow-iframe
173+
- replace-osm-to-ohm
174+
- replace-osm-tiles-to-ohm
163175

164176
overpass-api-staging-router:
165177
rule: Host(`overpass-api.staging.openhistoricalmap.org`)

0 commit comments

Comments
 (0)