Skip to content

Commit 90cca01

Browse files
author
Rub21
committed
Replace osm dmain with a custom ENV domain in nominatim
1 parent 3122e26 commit 90cca01

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

images/nominatim/startapache.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/bin/bash
22
export NOMINATIM_SETTINGS='/app/src/build/settings/local_api.php'
33

4+
# Replace API URLs on files
5+
sed -i -e "s/www.openstreetmap.org/$OSMSEED_WEB_API_DOMAIN/g" /app/src/lib/lib.php
6+
sed -i -e "s/www.openstreetmap.org/$OSMSEED_WEB_API_DOMAIN/g" /app/src/utils/update.php
7+
sed -i -e "s/overpass-api.de/$OSMSEED_OVERPASS_API_DOMAIN/g" /app/src/utils/update.php
8+
49
# echo 'Setup the app'
510
# /app/src/build/utils/setup.php --setup-website
611

osm-seed/templates/nominatim-api-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ spec:
5959
value: {{ .Values.nominatimDb.env.PG_USER }}
6060
- name: PG_PORT
6161
value: {{ .Values.nominatimDb.env.PG_PORT | quote }}
62+
- name: OSMSEED_WEB_API_DOMAIN
63+
value: {{ .Values.nominatimApi.env.OSMSEED_WEB_API_DOMAIN }}
64+
- name: OSMSEED_OVERPASS_API_DOMAIN
65+
value: {{ .Values.nominatimApi.env.OSMSEED_OVERPASS_API_DOMAIN }}
6266
{{- if .Values.nominatimApi.nodeSelector.enabled }}
6367
nodeSelector:
6468
{{ .Values.nominatimApi.nodeSelector.label_key }} : {{ .Values.nominatimApi.nodeSelector.label_value }}

osm-seed/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,9 @@ nominatimApi:
528528
enabled: true
529529
replicaCount: 1
530530
env:
531-
BASE_URL: 'https://nominatim.osm-seed.test'
531+
BASE_URL: https://nominatim.osm-seed.test
532+
OSMSEED_WEB_API_DOMAIN: osmseed.org
533+
OSMSEED_OVERPASS_API_DOMAIN: overpass-api.osmseed.org
532534
resources:
533535
enabled: false
534536
requests:

0 commit comments

Comments
 (0)