Environment Variables

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

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