maailma.core

build-config

(build-config & parts)
Merges given configuration parts.

env

(env prefix)
Reads configuration part from envinronment variables, filtered by a prefix.

env-var

(env-var var-name path)
Reads a configuration value from an environment variable and associates it to
the given path in a map.

    (env-var "SERVER_PORT" [:http :port])  ; => {:http {:port "8080"}}

file

(file file-path)(file file-path reader-opts)
Reads configuration part from given path in filesystem.

properties

(properties prefix)
Reads configuration part from system properties, filtered by a prefix.

read-config!

(read-config! prefix)(read-config! prefix override)
Read and merge config from several sources:

- config-defaults.edn resource
- envinronment variables (filtered by prefix)
- system properties (filtered by prefix)
- config-local.edn file in current directory
- override parameter

read-env-file

(read-env-file env-file)(read-env-file env-file reader-opts)
Read config from given File or URL.
Non-existing files are skipped.

resource

(resource path)(resource path reader-opts)
Reads configuration part from given path in classpath.