summaryrefslogtreecommitdiff
path: root/src/config.clj
blob: 15834cb71630006d11d16039d4208b41643c6a62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
(ns config
  (:import java.lang.System))

;; Configuration

(def *server-user* (System/getProperty "user.name"))
;;   (if (= (System/getProperty "user.name") "dumpfmprod")

(def *server-url*
  (if (= *server-user* "dumpfmprod")
    "http://dump.fm"
    "http://localhost:8080"))

(def *cookie-domain*  
  (if (= *server-user* "timb")
  ""
  ".dump.fm"))

(def *root-directory* (System/getProperty "user.dir"))
(def *image-directory* "images")
(def *avatar-directory* "avatars")