summaryrefslogtreecommitdiff
path: root/src/config.clj
blob: b6abfb5be44af33f83641f71436ea0b3b8833316 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
(ns config
  (:import java.lang.System))

;; Configuration

(def *server-user* (System/getProperty "user.name"))

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

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

(def db-server
  (if (= *server-user* "dumpfmprod")
    "localhost"; "192.168.162.138"
    "localhost"))

(def redis-server
  (if (= *server-user* "dumpfmprod")
    {:host "192.168.156.111" :port 6379 :db 0 }
    {:host "127.0.0.1" :port 6379 :db 0 }))

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


;; Settings

(def num-popular-dumps 40)
(def *dumps-per-page* 20)
(def *vip-dumps-per-page* 200)
(def message-count-limit 200)
(def num-hall-dumps 50)
(def max-content-size 2468)