                 ;; Hmmm should be able to specify a dep on port; aero?
                 :private-url-base "http://localhost:8080"}
                 ;; Shit... should be able to specify dependency on preprod as well!
-   :webserver-url "https://preprod.pol.is/api/v3"
    :database   {:pool-size 3}
    :poller     {:votes {:polling-interval 1000}
                 :moderation {:polling-interval 1000}


(defn get-config
  ([overrides]
   (deep-merge defaults
               ;(read-string (slurp "config.edn"))
               (get-environ-config rules environ/env)
               overrides))
  ([] (get-config {})))

(defrecord Config [overrides]

   :aws-access-key             {:path [:aws :access-key]}
   :webserver-username         {:path [:webserver-username]}
   :webserver-pass             {:path [:webserver-pass]}
   :export-server-auth-username {:path [:darwin :server-auth-username]}
   :export-server-auth-pass {:path [:darwin :server-auth-pass]}
   :math-matrix-implementation {:path [:math :matrix-implementation] :parse ->keyword}
