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 # 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 # EXPERT ONLY. You should usually use the supplied osm2pgsql.
 
  78 NOMINATIM_OSM2PGSQL_BINARY=
 
  80 # Directory where to find US Tiger data files to import.
 
  81 # OBSOLETE: use `nominatim add-data --tiger-data <dir>` to explicitly state
 
  82 #           the directory on import
 
  83 NOMINATIM_TIGER_DATA_PATH=
 
  85 # Directory where to find pre-computed Wikipedia importance files.
 
  86 # When unset, the data is expected to be located in the project directory.
 
  87 NOMINATIM_WIKIPEDIA_DATA_PATH=
 
  89 # Configuration file for special phrase import.
 
  90 # OBSOLETE: use `nominatim special-phrases --config <file>` or simply put
 
  91 #           a custom phrase-settings.json into your project directory.
 
  92 NOMINATIM_PHRASE_CONFIG=
 
  94 # Configuration file for rank assignments.
 
  95 NOMINATIM_ADDRESS_LEVEL_CONFIG=address-levels.json
 
  97 # Configuration file for OSM data import.
 
  98 # This may either be the name of one of an internal style or point
 
  99 # to a file with a custom style.
 
 100 # Internal styles are: admin, street, address, full, extratags
 
 101 NOMINATIM_IMPORT_STYLE=extratags
 
 103 # Location of the flatnode file used by osm2pgsql to store node locations.
 
 104 # When unset, osm2pgsql stores the location in the PostgreSQL database. This
 
 105 # is especially useful for imports of larger areas, like continents or the
 
 106 # full planet. The file needs at least 70GB storage.
 
 107 NOMINATIM_FLATNODE_FILE=
 
 109 ### Tablespace settings
 
 111 # The following settings allow to move parts of the database tables into
 
 112 # different tablespaces. This is especially interesting if you have disks
 
 113 # with different speeds. When unset, the default tablespace is used.
 
 114 # Only has an effect during import.
 
 116 # Tablespace used for tables used when searching.
 
 117 NOMINATIM_TABLESPACE_SEARCH_DATA=
 
 118 # Tablespace used for indexes used when searching.
 
 119 NOMINATIM_TABLESPACE_SEARCH_INDEX=
 
 121 # Tablespace used for the OSM data cache tables. Used for import and update only.
 
 122 NOMINATIM_TABLESPACE_OSM_DATA=
 
 123 # Tablespace used for the OSM data cache indexes. Used for import and update only.
 
 124 NOMINATIM_TABLESPACE_OSM_INDEX=
 
 126 # Tablespace used for place import table. Used for import and update only.
 
 127 NOMINATIM_TABLESPACE_PLACE_DATA=
 
 128 # Tablespace used for place import indexes. Used for import and update only.
 
 129 NOMINATIM_TABLESPACE_PLACE_INDEX=
 
 131 # Tablespace for tables used during address computation. Used for import and update only.
 
 132 NOMINATIM_TABLESPACE_ADDRESS_DATA=
 
 133 # Tablespace for indexes used during address computation. Used for import and update only.
 
 134 NOMINATIM_TABLESPACE_ADDRESS_INDEX=
 
 136 # Tablespace for tables for auxilary data, e.g. TIGER data, postcodes.
 
 137 NOMINATIM_TABLESPACE_AUX_DATA=
 
 138 # Tablespace for indexes for auxilary data, e.g. TIGER data, postcodes.
 
 139 NOMINATIM_TABLESPACE_AUX_INDEX=
 
 142 ### Replication settings
 
 144 # The following settings control where and how updates for the database are
 
 149 # Base URL of replication service.
 
 150 # A replication service provides change files of OSM data at regular intervals.
 
 151 # These are used to keep the database up to date. Per default it points to
 
 152 # the minutely updates for the main OSM database. There are other services
 
 153 # geared towards larger update intervals or data extracts.
 
 154 # Changing this value requires to rerun 'nominatim replication --init'.
 
 155 NOMINATIM_REPLICATION_URL="https://planet.openstreetmap.org/replication/minute"
 
 157 # Maximum amount of data to download per batch.
 
 159 NOMINATIM_REPLICATION_MAX_DIFF=50
 
 161 # Publication interval of the replication service (in seconds).
 
 162 # Determines when Nominatim will attempt again to download again a new
 
 163 # update. The time is computed from the publication date of the last diff
 
 164 # downloaded. Setting this to a slightly higher value than the actual
 
 165 # publication interval avoids unnecessary rechecks.
 
 166 NOMINATIM_REPLICATION_UPDATE_INTERVAL=75
 
 168 # Wait time to recheck for a pending update (in seconds).
 
 169 # Time to wait after an expected update was not available on the server.
 
 170 NOMINATIM_REPLICATION_RECHECK_INTERVAL=60
 
 174 # The following settings configure the API responses. You must rerun
 
 175 # 'nominatim refresh --website' after changing any of them.
 
 177 # Send permissive CORS access headers.
 
 178 # When enabled, send CORS headers to allow access to everybody.
 
 179 NOMINATIM_CORS_NOACCESSCONTROL=yes
 
 181 # URL for static icon images.
 
 182 # Set this to the /mapicon directory of your nominatim-ui to enable returning
 
 183 # icon URLs with the results.
 
 184 NOMINATIM_MAPICON_URL=
 
 186 # Language to assume when no particular language is requested.
 
 187 # When unset, the local language (i.e. the name tag without suffix) will be used.
 
 188 NOMINATIM_DEFAULT_LANGUAGE=
 
 190 # Enable a special batch query mode.
 
 191 # This feature is currently undocumented and potentially broken.
 
 192 NOMINATIM_SEARCH_BATCH_MODE=no
 
 194 # Threshold for searches by name only.
 
 195 # Threshold where the lookup strategy in the database is switched. If there
 
 196 # are less occurences of a tem than given, the search does the lookup only
 
 197 # against the name, otherwise it uses indexes for name and address.
 
 198 NOMINATIM_SEARCH_NAME_ONLY_THRESHOLD=500
 
 200 # Maximum number of OSM ids accepted by /lookup.
 
 201 NOMINATIM_LOOKUP_MAX_COUNT=50
 
 203 # Number of different geometry formats that may be queried in parallel.
 
 204 # Set to zero to disable polygon output.
 
 205 NOMINATIM_POLYGON_OUTPUT_MAX_TYPES=1
 
 209 # The following options allow to enable logging of API requests.
 
 210 # You must rerun 'nominatim refresh --website' after changing any of them.
 
 212 # Enable logging of requests into the DB.
 
 213 # The request will be logged into the new_query_log table.
 
 214 # You should set up a cron job that regularly clears out this table.
 
 217 # Enable logging of requests into a file.
 
 218 # To enable logging set this setting to the file to log to.