diff options
Diffstat (limited to 'src/config.clj')
| -rwxr-xr-x | src/config.clj | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/config.clj b/src/config.clj index bec5768..3ee165d 100755 --- a/src/config.clj +++ b/src/config.clj @@ -25,45 +25,45 @@ (contains? #{"1" "true" "yes" "on"} (.toLowerCase v)))))) (def *server-url* - (getenv "DUMPFM_SERVER_URL" + (getenv "HUMPFM_SERVER_URL" (if (= *server-user* "humpfmprod") "/" "http://localhost:8080"))) (def *public-host* - (getenv "DUMPFM_PUBLIC_HOST" + (getenv "HUMPFM_PUBLIC_HOST" (try (.getHost (URL. *server-url*)) (catch Exception _ "")))) (def *public-scheme* - (getenv "DUMPFM_PUBLIC_SCHEME" + (getenv "HUMPFM_PUBLIC_SCHEME" (try (.getProtocol (URL. *server-url*)) (catch Exception _ "http")))) (def *cookie-domain* - (getenv "DUMPFM_COOKIE_DOMAIN" + (getenv "HUMPFM_COOKIE_DOMAIN" (if (= *server-user* "humpfmprod") ".hump.fm" ""))) (def *passwordless-login* - (getenv-bool "DUMPFM_PASSWORDLESS_LOGIN" false)) + (getenv-bool "HUMPFM_PASSWORDLESS_LOGIN" false)) (def db-server - (getenv "DUMPFM_DB_HOST" + (getenv "HUMPFM_DB_HOST" (if (= *server-user* "humpfmprod") "localhost"; "192.168.162.138" "localhost"))) (def redis-server - {:host (getenv "DUMPFM_REDIS_HOST" + {:host (getenv "HUMPFM_REDIS_HOST" (if (= *server-user* "humpfmprod") "127.0.0.1" "127.0.0.1")) - :port (getenv-int "DUMPFM_REDIS_PORT" 6379) - :db (getenv-int "DUMPFM_REDIS_DB" 0)}) + :port (getenv-int "HUMPFM_REDIS_PORT" 6379) + :db (getenv-int "HUMPFM_REDIS_DB" 0)}) (def *root-directory* (System/getProperty "user.dir")) (def *image-directory* "images") |
