2 # Default configuration settings for Nominatim.
3 # This file uses the dotenv format.
5 # Database connection string.
6 # Add host, port, user etc through additional semicolon-separated attributes.
7 # e.g. ;host=...;port=...;user=...;password=...
8 # Changing this variable requires to run 'nominatim refresh --website'.
9 NOMINATIM_DATABASE_DSN="pgsql:dbname=nominatim"
12 # Nominatim sets up read-only access for this user during installation.
13 NOMINATIM_DATABASE_WEBUSER="www-data"
15 # Directory where to find the PostgreSQL server module.
16 # When empty the module is expected to be located in the 'module' subdirectory
17 # in the project directory.
18 # Changing this value requires to run 'nominatim refresh --functions'.
19 NOMINATIM_DATABASE_MODULE_PATH=
21 # Tokenizer used for normalizing and parsing queries and names.
22 # The tokenizer is set up during import and cannot be changed afterwards
24 # Currently available tokenizers: legacy
25 NOMINATIM_TOKENIZER="legacy"
27 # Number of occurrences of a word before it is considered frequent.
28 # Similar to the concept of stop words. Frequent partial words get ignored
29 # or handled differently during search.
30 # Changing this value requires a reimport.
31 NOMINATIM_MAX_WORD_FREQUENCY=50000
33 # If true, admin level changes on places with many contained children are blocked.
34 NOMINATIM_LIMIT_REINDEXING=yes
36 # Restrict search languages.
37 # Normally Nominatim will include all language variants of name:XX
38 # in the search index. Set this to a comma separated list of language
39 # codes, to restrict import to a subset of languages.
40 # Currently only affects the initial import of country names and special phrases.
43 # Rules for normalizing terms for comparisons.
44 # The default is to remove accents and punctuation and to lower-case the
45 # term. Spaces are kept but collapsed to one standard space.
46 # Changing this value requires a reimport.
47 NOMINATIM_TERM_NORMALIZATION=":: NFD (); [[:Nonspacing Mark:] [:Cf:]] >; :: lower (); [[:Punctuation:][:Space:]]+ > ' '; :: NFC ();"
49 # Configuration file for the tokenizer.
50 # The content depends on the tokenizer used. If left empty the default settings
51 # for the chosen tokenizer will be used. The configuration can only be set
52 # on import and not be changed afterwards.
53 NOMINATIM_TOKENIZER_CONFIG=
55 # Search in the Tiger house number data for the US.
56 # Note: The tables must already exist or queries will throw errors.
57 # Changing this value requires to run ./utils/setup --create-functions --setup-website.
58 NOMINATIM_USE_US_TIGER_DATA=no
60 # Search in the auxiliary housenumber table.
61 # Changing this value requires to run ./utils/setup --create-functions --setup-website.
62 NOMINATIM_USE_AUX_LOCATION_DATA=no
65 # The following settings allow to set a proxy to use when remotely downloading
66 # data. Host and port are required. Login and password are optional.
67 NOMINATIM_HTTP_PROXY=no
68 NOMINATIM_HTTP_PROXY_HOST=
69 NOMINATIM_HTTP_PROXY_PORT=3128
70 NOMINATIM_HTTP_PROXY_LOGIN=
71 NOMINATIM_HTTP_PROXY_PASSWORD=
72 # Also set these standard environment variables.
73 # HTTP_PROXY="http://user:pass@10.10.1.10:1080"
74 # HTTPS_PROXY="http://user:pass@10.10.1.10:1080"
76 # Location of the osm2pgsql binary.
77 # When empty, osm2pgsql is expected to reside in the osm2pgsql directory in
78 # the project directory.
79 # EXPERT ONLY. You should usually use the supplied osm2pgsql.
80 NOMINATIM_OSM2PGSQL_BINARY=
82 # Directory where to find US Tiger data files to import.
83 # OBSOLETE: use `nominatim add-data --tiger-data <dir>` to explicitly state
84 # the directory on import
85 NOMINATIM_TIGER_DATA_PATH=
87 # Directory where to find pre-computed Wikipedia importance files.
88 # When unset, the data is expected to be located in the project directory.
89 NOMINATIM_WIKIPEDIA_DATA_PATH=
91 # Configuration file for special phrase import.
92 # When unset, the internal default settings from 'settings/phrase-settings.json'
94 NOMINATIM_PHRASE_CONFIG=
96 # Configuration file for rank assignments.
97 # When unset, the internal default settings from 'settings/address-levels.json'
99 NOMINATIM_ADDRESS_LEVEL_CONFIG=
101 # Configuration file for OSM data import.
102 # This may either be the name of one of an internal style or point
103 # to a file with a custom style.
104 # Internal styles are: admin, street, address, full, extratags
105 NOMINATIM_IMPORT_STYLE=extratags
107 # Location of the flatnode file used by osm2pgsql to store node locations.
108 # When unset, osm2pgsql stores the location in the PostgreSQL database. This
109 # is especially useful for imports of larger areas, like continents or the
110 # full planet. The file needs at least 70GB storage.
111 NOMINATIM_FLATNODE_FILE=
113 ### Tablespace settings
115 # The following settings allow to move parts of the database tables into
116 # different tablespaces. This is especially interesting if you have disks
117 # with different speeds. When unset, the default tablespace is used.
118 # Only has an effect during import.
120 # Tablespace used for tables used when searching.
121 NOMINATIM_TABLESPACE_SEARCH_DATA=
122 # Tablespace used for indexes used when searching.
123 NOMINATIM_TABLESPACE_SEARCH_INDEX=
125 # Tablespace used for the OSM data cache tables. Used for import and update only.
126 NOMINATIM_TABLESPACE_OSM_DATA=
127 # Tablespace used for the OSM data cache indexes. Used for import and update only.
128 NOMINATIM_TABLESPACE_OSM_INDEX=
130 # Tablespace used for place import table. Used for import and update only.
131 NOMINATIM_TABLESPACE_PLACE_DATA=
132 # Tablespace used for place import indexes. Used for import and update only.
133 NOMINATIM_TABLESPACE_PLACE_INDEX=
135 # Tablespace for tables used during address computation. Used for import and update only.
136 NOMINATIM_TABLESPACE_ADDRESS_DATA=
137 # Tablespace for indexes used during address computation. Used for import and update only.
138 NOMINATIM_TABLESPACE_ADDRESS_INDEX=
140 # Tablespace for tables for auxilary data, e.g. TIGER data, postcodes.
141 NOMINATIM_TABLESPACE_AUX_DATA=
142 # Tablespace for indexes for auxilary data, e.g. TIGER data, postcodes.
143 NOMINATIM_TABLESPACE_AUX_INDEX=
146 ### Replication settings
148 # The following settings control where and how updates for the database are
153 # Base URL of replication service.
154 # A replication service provides change files of OSM data at regular intervals.
155 # These are used to keep the database up to date. Per default it points to
156 # the minutely updates for the main OSM database. There are other services
157 # geared towards larger update intervals or data extracts.
158 # Changing this value requires to rerun 'nominatim replication --init'.
159 NOMINATIM_REPLICATION_URL="https://planet.openstreetmap.org/replication/minute"
161 # Maximum amount of data to download per batch.
163 NOMINATIM_REPLICATION_MAX_DIFF=50
165 # Publication interval of the replication service (in seconds).
166 # Determines when Nominatim will attempt again to download again a new
167 # update. The time is computed from the publication date of the last diff
168 # downloaded. Setting this to a slightly higher value than the actual
169 # publication interval avoids unnecessary rechecks.
170 NOMINATIM_REPLICATION_UPDATE_INTERVAL=75
172 # Wait time to recheck for a pending update (in seconds).
173 # Time to wait after an expected update was not available on the server.
174 NOMINATIM_REPLICATION_RECHECK_INTERVAL=60
178 # The following settings configure the API responses. You must rerun
179 # 'nominatim refresh --website' after changing any of them.
181 # Send permissive CORS access headers.
182 # When enabled, send CORS headers to allow access to everybody.
183 NOMINATIM_CORS_NOACCESSCONTROL=yes
185 # URL for static icon images.
186 # Set this to the /mapicon directory of your nominatim-ui to enable returning
187 # icon URLs with the results.
188 NOMINATIM_MAPICON_URL=
190 # Language to assume when no particular language is requested.
191 # When unset, the local language (i.e. the name tag without suffix) will be used.
192 NOMINATIM_DEFAULT_LANGUAGE=
194 # Enable a special batch query mode.
195 # This feature is currently undocumented and potentially broken.
196 NOMINATIM_SEARCH_BATCH_MODE=no
198 # Threshold for searches by name only.
199 # Threshold where the lookup strategy in the database is switched. If there
200 # are less occurences of a tem than given, the search does the lookup only
201 # against the name, otherwise it uses indexes for name and address.
202 NOMINATIM_SEARCH_NAME_ONLY_THRESHOLD=500
204 # Maximum number of OSM ids accepted by /lookup.
205 NOMINATIM_LOOKUP_MAX_COUNT=50
207 # Number of different geometry formats that may be queried in parallel.
208 # Set to zero to disable polygon output.
209 NOMINATIM_POLYGON_OUTPUT_MAX_TYPES=1
213 # The following options allow to enable logging of API requests.
214 # You must rerun 'nominatim refresh --website' after changing any of them.
216 # Enable logging of requests into the DB.
217 # The request will be logged into the new_query_log table.
218 # You should set up a cron job that regularly clears out this table.
221 # Enable logging of requests into a file.
222 # To enable logging set this setting to the file to log to.