aboutsummaryrefslogtreecommitdiff
path: root/src/clj/queue_api/config.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/clj/queue_api/config.clj')
-rw-r--r--src/clj/queue_api/config.clj12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/clj/queue_api/config.clj b/src/clj/queue_api/config.clj
new file mode 100644
index 0000000..30ed9a5
--- /dev/null
+++ b/src/clj/queue_api/config.clj
@@ -0,0 +1,12 @@
+(ns queue-api.config
+ (:require [cprop.core :refer [load-config]]
+ [cprop.source :as source]
+ [mount.core :refer [args defstate]]))
+
+(defstate env
+ :start
+ (load-config
+ :merge
+ [(args)
+ (source/from-system-props)
+ (source/from-env)]))