diff options
| author | yo momma <shutup@oops.wtf> | 2026-02-04 18:25:45 +0000 |
|---|---|---|
| committer | yo momma <shutup@oops.wtf> | 2026-02-04 18:25:45 +0000 |
| commit | 23d3496e8b975804a2639972fe2ec9bb17bb73b4 (patch) | |
| tree | 06b1be51c4c8e820dd5a2ef4206275c3829837d0 /src/config.clj | |
| parent | 120b42a2305c0a01069c8268aa9a2866923cb9ea (diff) | |
Rebrand: HUMPFM env vars + salts
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") |
