Skip to content

Environment Variables

You can configure Martin using environment variables, but only if the configuration file is not used. The configuration file itself can use environment variables if needed. See configuration section on how to use environment variables with config files. See also SSL configuration section below.

Environment var
Config File key
Example Description
DATABASE_URL
connection_string
postgres://
postgres@localhost/db
Postgres database connection
DEFAULT_SRID
default_srid
4326 If a PostgreSQL table has a geometry column with SRID=0, use this value instead
PGSSLCERT
ssl_cert
./postgresql.crt A file with a client SSL certificate. docs
PGSSLKEY
ssl_key
./postgresql.key A file with the key for the client SSL certificate. docs
PGSSLROOTCERT
ssl_root_cert
./root.crt A file with trusted root certificate(s). The file should contain a sequence of PEM-formatted CA certificates. docs
AWS_LAMBDA_RUNTIME_API
-
If defined, connect to AWS Lambda to handle requests. The regular HTTP server is not used. See Running in AWS Lambda