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: icu, legacy
25 NOMINATIM_TOKENIZER="icu"
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 # When set to 'yes' changes to OSM objects will be propagated to dependent
37 # objects. This means that geometries of way/relations are updated when a
38 # node on a way or a way in a relation changes.
39 # EXPERT ONLY: Use with care. Enabling this option might lead to significantly
40 # more load when updates are applied.
41 # Do not enable this option on an existing database.
42 # The default is to not propagate these changes.
43 NOMINATIM_UPDATE_FORWARD_DEPENDENCIES=no
45 # Restrict search languages.
46 # Normally Nominatim will include all language variants of name:XX
47 # in the search index. Set this to a comma separated list of language
48 # codes, to restrict import to a subset of languages.
49 # Currently only affects the initial import of country names and special phrases.
52 # Rules for normalizing terms for comparisons.
53 # The default is to remove accents and punctuation and to lower-case the
54 # term. Spaces are kept but collapsed to one standard space.
55 # Changing this value requires a reimport.
56 NOMINATIM_TERM_NORMALIZATION=":: NFD (); [[:Nonspacing Mark:] [:Cf:]] >; :: lower (); [[:Punctuation:][:Space:]]+ > ' '; :: NFC ();"
58 # Configuration file for the tokenizer.
59 # The content depends on the tokenizer used. If left empty the default settings
60 # for the chosen tokenizer will be used. The configuration can only be set
61 # on import and not be changed afterwards.
62 NOMINATIM_TOKENIZER_CONFIG=
64 # Search in the Tiger house number data for the US.
65 # Note: The tables must already exist or queries will throw errors.
66 # Changing this value requires to run ./utils/setup --create-functions --setup-website.
67 NOMINATIM_USE_US_TIGER_DATA=no
69 # Search in the auxiliary housenumber table.
70 # Changing this value requires to run ./utils/setup --create-functions --setup-website.
71 NOMINATIM_USE_AUX_LOCATION_DATA=no
74 # The following settings allow to set a proxy to use when remotely downloading
75 # data. Host and port are required. Login and password are optional.
76 NOMINATIM_HTTP_PROXY=no
77 NOMINATIM_HTTP_PROXY_HOST=
78 NOMINATIM_HTTP_PROXY_PORT=3128
79 NOMINATIM_HTTP_PROXY_LOGIN=
80 NOMINATIM_HTTP_PROXY_PASSWORD=
81 # Also set these standard environment variables.
82 # HTTP_PROXY="http://user:pass@10.10.1.10:1080"
83 # HTTPS_PROXY="http://user:pass@10.10.1.10:1080"
85 # Location of the osm2pgsql binary.
86 # EXPERT ONLY. You should usually use the supplied osm2pgsql.
87 NOMINATIM_OSM2PGSQL_BINARY=
89 # Directory where to find US Tiger data files to import.
90 # OBSOLETE: use `nominatim add-data --tiger-data <dir>` to explicitly state
91 # the directory on import
92 NOMINATIM_TIGER_DATA_PATH=
94 # Directory where to find pre-computed Wikipedia importance files.
95 # When unset, the data is expected to be located in the project directory.
96 NOMINATIM_WIKIPEDIA_DATA_PATH=
98 # Configuration file for special phrase import.
99 # OBSOLETE: use `nominatim special-phrases --config <file>` or simply put
100 # a custom phrase-settings.json into your project directory.
101 NOMINATIM_PHRASE_CONFIG=
103 # Configuration file for rank assignments.
104 NOMINATIM_ADDRESS_LEVEL_CONFIG=address-levels.json
106 # Configuration file for OSM data import.
107 # This may either be the name of one of an internal style or point
108 # to a file with a custom style.
109 # Internal styles are: admin, street, address, full, extratags
110 NOMINATIM_IMPORT_STYLE=extratags
112 # Location of the flatnode file used by osm2pgsql to store node locations.
113 # When unset, osm2pgsql stores the location in the PostgreSQL database. This
114 # is especially useful for imports of larger areas, like continents or the
115 # full planet. The file needs at least 70GB storage.
116 NOMINATIM_FLATNODE_FILE=
118 ### Tablespace settings
120 # The following settings allow to move parts of the database tables into
121 # different tablespaces. This is especially interesting if you have disks
122 # with different speeds. When unset, the default tablespace is used.
123 # Only has an effect during import.
125 # Tablespace used for tables used when searching.
126 NOMINATIM_TABLESPACE_SEARCH_DATA=
127 # Tablespace used for indexes used when searching.
128 NOMINATIM_TABLESPACE_SEARCH_INDEX=
130 # Tablespace used for the OSM data cache tables. Used for import and update only.
131 NOMINATIM_TABLESPACE_OSM_DATA=
132 # Tablespace used for the OSM data cache indexes. Used for import and update only.
133 NOMINATIM_TABLESPACE_OSM_INDEX=
135 # Tablespace used for place import table. Used for import and update only.
136 NOMINATIM_TABLESPACE_PLACE_DATA=
137 # Tablespace used for place import indexes. Used for import and update only.
138 NOMINATIM_TABLESPACE_PLACE_INDEX=
140 # Tablespace for tables used during address computation. Used for import and update only.
141 NOMINATIM_TABLESPACE_ADDRESS_DATA=
142 # Tablespace for indexes used during address computation. Used for import and update only.
143 NOMINATIM_TABLESPACE_ADDRESS_INDEX=
145 # Tablespace for tables for auxilary data, e.g. TIGER data, postcodes.
146 NOMINATIM_TABLESPACE_AUX_DATA=
147 # Tablespace for indexes for auxilary data, e.g. TIGER data, postcodes.
148 NOMINATIM_TABLESPACE_AUX_INDEX=
151 ### Replication settings
153 # The following settings control where and how updates for the database are
158 # Base URL of replication service.
159 # A replication service provides change files of OSM data at regular intervals.
160 # These are used to keep the database up to date. Per default it points to
161 # the minutely updates for the main OSM database. There are other services
162 # geared towards larger update intervals or data extracts.
163 # Changing this value requires to rerun 'nominatim replication --init'.
164 NOMINATIM_REPLICATION_URL="https://planet.openstreetmap.org/replication/minute"
166 # Maximum amount of data to download per batch.
168 NOMINATIM_REPLICATION_MAX_DIFF=50
170 # Publication interval of the replication service (in seconds).
171 # Determines when Nominatim will attempt again to download again a new
172 # update. The time is computed from the publication date of the last diff
173 # downloaded. Setting this to a slightly higher value than the actual
174 # publication interval avoids unnecessary rechecks.
175 NOMINATIM_REPLICATION_UPDATE_INTERVAL=75
177 # Wait time to recheck for a pending update (in seconds).
178 # Time to wait after an expected update was not available on the server.
179 NOMINATIM_REPLICATION_RECHECK_INTERVAL=60
183 # The following settings configure the API responses. You must rerun
184 # 'nominatim refresh --website' after changing any of them.
186 # Send permissive CORS access headers.
187 # When enabled, send CORS headers to allow access to everybody.
188 NOMINATIM_CORS_NOACCESSCONTROL=yes
190 # URL for static icon images.
191 # Set this to the /mapicon directory of your nominatim-ui to enable returning
192 # icon URLs with the results.
193 NOMINATIM_MAPICON_URL=
195 # Language to assume when no particular language is requested.
196 # When unset, the local language (i.e. the name tag without suffix) will be used.
197 NOMINATIM_DEFAULT_LANGUAGE=
199 # Enable a special batch query mode.
200 # This feature is currently undocumented and potentially broken.
201 NOMINATIM_SEARCH_BATCH_MODE=no
203 # Threshold for searches by name only.
204 # Threshold where the lookup strategy in the database is switched. If there
205 # are less occurences of a tem than given, the search does the lookup only
206 # against the name, otherwise it uses indexes for name and address.
207 NOMINATIM_SEARCH_NAME_ONLY_THRESHOLD=500
209 # Maximum number of OSM ids accepted by /lookup.
210 NOMINATIM_LOOKUP_MAX_COUNT=50
212 # Number of different geometry formats that may be queried in parallel.
213 # Set to zero to disable polygon output.
214 NOMINATIM_POLYGON_OUTPUT_MAX_TYPES=1
218 # The following options allow to enable logging of API requests.
219 # You must rerun 'nominatim refresh --website' after changing any of them.
221 # Enable logging of requests into the DB.
222 # The request will be logged into the new_query_log table.
223 # You should set up a cron job that regularly clears out this table.
226 # Enable logging of requests into a file.
227 # To enable logging set this setting to the file to log to.