This repository has been archived by the owner on Apr 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathlocal_settings.cljs
128 lines (93 loc) · 3.35 KB
/
local_settings.cljs
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
(ns oc.web.local-settings
(:require [clojure.walk :refer (keywordize-keys)]))
(defn- env [key]
(some-> js/window
.-OCEnv
js->clj
keywordize-keys
key))
;; Deploy key (cache buster)
(def deploy-key "123456")
;; Sentry
(def local-dsn "https://[email protected]/73174") ; insert your Sentry public dsn here
(def sentry-env "local")
(def sentry-release "ALOHA")
(def sentry-deploy deploy-key)
;; Change this with your machine ip address to test
;; from a device on the same network
(def web-hostname (or (env :web-hostname) "localhost"))
(def web-port (or (env :web-port) "3559"))
;; Storage location
(def web-server-domain (str "http://" web-hostname ":" web-port))
;; Storage location
(def storage-server-domain (str "http://" web-hostname ":3001"))
;; Auth location
(def auth-server-domain (str "http://" web-hostname ":3003"))
;; Pay location
(def payments-server-domain (str "http://" web-hostname ":3004"))
;; Interaction location
(def interaction-server-domain (str "http://" web-hostname ":3002"))
;; Change location
(def change-server-domain (str "http://" web-hostname ":3006"))
;; Search location
(def search-server-domain (str "http://" web-hostname ":3007"))
(def search-enabled? true)
;; Reminder location
(def reminders-enabled? false)
(def reminder-server-domain (str "http://" web-hostname ":3011"))
;; Web location
(def web-server (str web-hostname ":" web-port))
(def whats-new-url "https://headwayapp.co/carrot-changes")
(def product-name "Carrot")
;; JWT
(def jwt-cookie-domain web-hostname)
(def jwt-cookie-secure false)
;; Filestack key
(def filestack-key "Aoay0qXUSOyVIcDvls4Egz")
;; Cookie prefix
(def cookie-name-prefix (str web-hostname "-"))
;; Log level
(def log-level "debug")
;; CDN URL
(def cdn-url "")
;; Attachments bucket
(def attachments-bucket "open-company-attachments-non-prod")
;; AP seen TTL in days
(def oc-seen-ttl 30)
;; Payments enabled
(def payments-enabled true)
(def stripe-api-key "pk_test_srP6wqbAalvBWYxcdAi4NlX0")
;; WS monitor
(def ws-monitor-interval 30)
;; Giphy
(def giphy-api-key "M2FfNXledXWbpa7FZkg2vvUD8kHMTQVF")
;; Image upload limit
(def file-upload-size (* 20 1024 1024))
(def mac-app-url "https://github.com/open-company/open-company-web/releases/download/untagged-a060f76d2ed11d47ff35/Carrot.dmg")
(def win-app-url "https://github.com/open-company/open-company-web/releases/download/untagged-a060f76d2ed11d47ff35/Carrot.exe")
(def ios-app-url "https://apps.apple.com/us/app/carrot-mobile/id1473028573")
(def android-app-url "https://play.google.com/apps/testing/io.carrot.mobile")
;; Publisher boards feature-flag
(def publisher-board-enabled? false)
;; Max number of Slack mirrored channels
(def max-slack-mirror-channels 3)
;; Fake container ids for seen table
(def seen-home-container-id "1111-1111-1111")
(def seen-replies-container-id "2222-2222-2222")
;; Digest times
(def default-digest-time :700)
(def digest-times [default-digest-time])
(def premium-digest-times (concat digest-times [:1200 :1700]))
;; Primary color
(def default-color
{:primary {:rgb {:r 33 :g 178 :b 104}
:hex "#21B268"}
:secondary {:rgb {:r 254 :g 254 :b 254}
:hex "#FFFFFF"}})
(def default-brand-color
{:light default-color
:dark default-color})
(defonce default-csv-days 30)
;; Labels
(defonce labels-enabled? true)
(defonce max-entry-labels 3)