]> git.openstreetmap.org Git - nominatim.git/blob - settings/env.defaults
fix bad use of echo in PHP output
[nominatim.git] / settings / env.defaults
1 # .env
2 # Default configuration settings for Nominatim.
3 # This file uses the dotenv format.
4
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"
10
11 # Database web user.
12 # Nominatim sets up read-only access for this user during installation.
13 NOMINATIM_DATABASE_WEBUSER="www-data"
14
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=
20
21 # Tokenizer used for normalizing and parsing queries and names.
22 # The tokenizer is set up during import and cannot be changed afterwards
23 # without a reimport.
24 # Currently available tokenizers: legacy
25 NOMINATIM_TOKENIZER="legacy"
26
27 # Number of occurances 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
32
33 # If true, admin level changes on places with many contained children are blocked.
34 NOMINATIM_LIMIT_REINDEXING=yes
35
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.
41 NOMINATIM_LANGUAGES=
42
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 ();"
48
49 # Configuration file for the tokenizer.
50 # The content depends on the tokenizer used. If left empty the default settings
51 # for the chooseen tokenizer will be used. The configuration can only be set
52 # on import and not be changed afterwards.
53 NOMINATIM_TOKENIZER_CONFIG=
54
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
59
60 # Search in the auxilary housenumber table.
61 # Changing this value requires to run ./utils/setup --create-functions --setup-website.
62 NOMINATIM_USE_AUX_LOCATION_DATA=no
63
64 # Proxy settings
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=proxy.mydomain.com
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"
75
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=
81
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=
86
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=
90
91 # Configuration file for special phrase import.
92 # When unset, the internal default settings from 'settings/phrase-settings.json'
93 # are used.
94 NOMINATIM_PHRASE_CONFIG=
95
96 # Configuration file for rank assignments.
97 # When unset, the internal default settings from 'settings/address-levels.json'
98 # are used.
99 NOMINATIM_ADDRESS_LEVEL_CONFIG=
100
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
106
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=
112
113 ### Tablespace settings
114 #
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.
119
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=
124
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=
129
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=
134
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=
139
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=
144
145
146 ### Replication settings
147 #
148 # The following settings control where and how updates for the database are
149 # retrieved.
150 #
151
152 #
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"
160
161 # Maximum amount of data to download per batch.
162 # Size is in MB.
163 NOMINATIM_REPLICATION_MAX_DIFF=50
164
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
171
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
175
176 ### API settings
177 #
178 # The following settings configure the API responses. You must rerun
179 # 'nominatim refresh --website' after changing any of them.
180
181 # Send permissive CORS access headers.
182 # When enabled, send CORS headers to allow access to everybody.
183 NOMINATIM_CORS_NOACCESSCONTROL=yes
184
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=
189
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=
193
194 # Enable a special batch query mode.
195 # This features is currently undocumented and potentially broken.
196 NOMINATIM_SEARCH_BATCH_MODE=no
197
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
203
204 # Maximum number of OSM ids accepted by /lookup.
205 NOMINATIM_LOOKUP_MAX_COUNT=50
206
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
210
211 ### Log settings
212 #
213 # The following options allow to enable logging of API requests.
214 # You must rerun 'nominatim refresh --website' after changing any of them.
215 #
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.
219 NOMINATIM_LOG_DB=no
220
221 # Enable logging of requests into a file.
222 # To enable logging set this setting to the file to log to.
223 NOMINATIM_LOG_FILE=