blob: 1481855d8f15531b5680776b124d9623c5cabd8d (
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
41
42
43
44
|
(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://asdf.us:8080"))
(def *cookie-domain*
(if (= *server-user* "dumpfmprod")
;".dump.fm" ; is this ok or should I comment this too? this too
; not clojure specialist, but all this stuff doesn't look good, app should be able to run from any location and still work as usual, domains shouldn't
; be hardcoded at all. in html paths can be relative, which removes need to figure out which domain you running app on. I hear you,
; let's just get it working though, right? sure
""))
(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 } ;these ip addresses need to change right? yes should I try deleting this? or statically
;setting it to my public ip? why public ip, it should be just 127.0.0.1 or something like redis.dump.fm if you plan to have more than one server.
{: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)
|