City2TABULA reads its configuration from environment variables. On start it loads .env from the working directory, and a value there overrides the same variable set in the shell. .env.example is the template:
cp.env.example.env
An empty value counts as unset and takes the default.
Country of the data, e.g. germany, netherlands, united_kingdom. Case, spaces and hyphens are normalised. Must be one of the 20 countries with TABULA data listed in .env.example. Selects the TABULA typology, the data folders data/lod2/<country>/ and data/lod3/<country>/, and the default SRID.
DB_NAME
required
Base name of the database. The country's ISO 3166-1 alpha-2 code is appended: city2tabula with COUNTRY=netherlands gives city2tabula_nl. The database is created when it does not exist.
DB_HOST
localhost
PostgreSQL host.
DB_PORT
5432
PostgreSQL port.
DB_USER
postgres
PostgreSQL role. Creating the database needs CREATEDB or superuser.
DB_PASSWORD
required
Password of DB_USER.
DB_SSL_MODE
prefer
libpq sslmode: disable, allow, prefer, require, verify-ca or verify-full.