Skip to content

Commit 00639e5

Browse files
committed
chore: drop dead env-var passthroughs from app-api; document backend URLs in both .env.example files
1 parent 135c175 commit 00639e5

3 files changed

Lines changed: 27 additions & 12 deletions

File tree

apps/api/.env.example

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,21 @@ MAPILLARY_TOKEN=
6060
MAPILLARY_CLIENT_ID=
6161
MAPILLARY_CLIENT_SECRET=
6262

63-
# Self-hosted routing URLs (used by apps/api's road-snap / elevation /
64-
# isochrone helpers). The routing integrations are configured separately:
65-
# use `INTEGRATION_ROUTING_OSRM_ENDPOINT` / `INTEGRATION_ROUTING_VALHALLA_ENDPOINT`.
63+
# Self-hosted backend URLs used directly by apps/api (not by the routing /
64+
# geocoding / transit *integrations* — those have their own configSchema.endpoint,
65+
# configure via admin panel or INTEGRATION_<ID>_ENDPOINT).
66+
#
67+
# - OSRM_URL, VALHALLA_URL → road-snap, elevation, isochrone helpers
68+
# - MOTIS_URL → motis manager (status + lifecycle)
69+
# - OVERPASS_URL → Overpass client in packages/core (shared helper)
70+
# - NOMINATIM_URL → packages/shared-mobility nominatim reverse-geocoder
71+
# - TRANSITOUS_URL → packages/shared-mobility rentals fetcher
6672
# OSRM_URL=http://localhost:5000
6773
# VALHALLA_URL=http://localhost:8002
68-
69-
# Self-hosted MOTIS URL (used by apps/api's motis manager)
70-
# For the transit-motis / geocoding-motis integrations, use
71-
# `INTEGRATION_TRANSIT_MOTIS_ENDPOINT` / `INTEGRATION_GEOCODING_MOTIS_ENDPOINT`.
7274
# MOTIS_URL=http://localhost:8081
75+
# OVERPASS_URL=http://localhost:8082
76+
# NOMINATIM_URL=http://localhost:8088
77+
# TRANSITOUS_URL=https://api.transitous.org
7378

7479
# Thunderforest OpenCycleMap (apps/api tile proxy)
7580
# Sign up for a free Hobby Project key at https://www.thunderforest.com/

infra/docker/.env.example

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,27 @@ MAPTILER_KEY=
3434
MAPILLARY_TOKEN=
3535

3636
# --- Self-hosted backend URLs ---------------------------------------------
37-
# Used by apps/api's direct-call helpers (road-snap, elevation, isochrone,
38-
# motis manager) and the core shared packages (overpass/transitous clients).
37+
# Used by apps/api's direct-call helpers and shared packages (not by the
38+
# routing / geocoding / transit *integrations* — those have their own
39+
# configSchema.endpoint, configure them via admin panel or
40+
# INTEGRATION_<ID>_ENDPOINT).
41+
#
42+
# - OSRM_URL, VALHALLA_URL → apps/api road-snap, elevation, isochrone
43+
# - MOTIS_URL → apps/api motis manager (status + lifecycle)
44+
# - OVERPASS_URL → packages/core/src/utils/overpass/client.ts
45+
# - NOMINATIM_URL → packages/shared-mobility/nominatim.ts
46+
# (station reverse-geocoding for bike / scooter
47+
# / car sharing)
48+
# - TRANSITOUS_URL → packages/shared-mobility/motis-rentals.ts
49+
# (rental POIs for shared-mobility integrations)
50+
#
3951
# Leave commented to use the container-network default ("http://osrm:5000",
4052
# etc). Uncomment and set if your backends run outside the compose stack.
4153
# OSRM_URL=http://osrm:5000
4254
# VALHALLA_URL=http://valhalla:8002
4355
# MOTIS_URL=http://motis:8081
4456
# OVERPASS_URL=http://overpass:80
57+
# NOMINATIM_URL=http://nominatim:8080
4558
# TRANSITOUS_URL=https://api.transitous.org
4659

4760
# --- Service tuning (forwarded into the backend containers) ---------------

services/app-api/service.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,9 @@
1616
"REDIS_URL": "redis://redis:6379",
1717
"OSRM_URL": "${OSRM_URL:-http://osrm:5000}",
1818
"VALHALLA_URL": "${VALHALLA_URL:-http://valhalla:8002}",
19-
"OTP_URL": "${OTP_URL:-http://otp:8080}",
2019
"MOTIS_URL": "${MOTIS_URL:-http://motis:8080}",
2120
"TRANSITOUS_URL": "${TRANSITOUS_URL:-https://api.transitous.org}",
22-
"PELIAS_URL": "${PELIAS_URL:-http://pelias:4000}",
2321
"NOMINATIM_URL": "${NOMINATIM_URL:-http://nominatim:8080}",
24-
"PHOTON_URL": "${PHOTON_URL:-http://photon:2322}",
2522
"OVERPASS_URL": "${OVERPASS_URL:-http://overpass:80}",
2623
"CORS_ORIGIN": "https://${DOMAIN:-localhost},http://localhost:3000",
2724
"BETTER_AUTH_URL": "https://${DOMAIN:-localhost}",

0 commit comments

Comments
 (0)