-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.nested-example.edn
88 lines (78 loc) · 3.54 KB
/
config.nested-example.edn
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
{:server {;; server
:http-port 8080
:https-port 8443
:nrepl false
:nrepl-port 5555
:nrepl-bind "127.0.0.1"
:cider-nrepl true
:mode "dev"
:log-dir "logs"
:handler product-ns.routing/handler
:keystore-file "keystore.pkcs12"
:keystore-type "pkcs12"
:keystore-password "foobar"
;; handler
:not-found-handler product-ns.handlers/not-found-handler
:redirect-handler product-ns.handlers/redirect-handler
:route-authenticator product-ns.handlers/route-authenticator
:routing-tables [common-libary-ns.routing/routes product-ns.routing/routes]
:bad-tokens #{".php"}
:truncate-request false
:private-request-keys #{:base64Image :plotFileBase64 :sampleFileBase64}
:private-response-keys #{}
:upload-max-size-mb 100
:upload-max-file-count 10
;; workers
:workers {:scheduler {:start product-ns.jobs/start-scheduled-jobs!
:stop product-ns.jobs/stop-scheduled-jobs!}}
;; response
:response-type :json} ; :edn or :transit
:app {;; views
:title {:en "Product name in English"
:es "Product name in Spanish"}
:description {:en "Description of the product in English"
:es "Description of the product in Spanish"}
:keywords {:en "english keywords, satellite imagery, collection, monitoring, fire"
:es "spanish keywords, satellite imagery, collection, monitoring, fire"}
:extra-head-tags [[:meta {:name "viewport" :content "width=device-width, user-scalable=no"}]
[:link {:rel "manifest" :href "/favicon/site.webmanifest"}]
[:link {:rel "shortcut icon" :href "/favicon/favicon.ico"}]]
:gtag-id "G-..."
:static-css-files ["/css/my_global.css"] ; in resources/public/
:static-js-files ["/js/jquery-3.4.1.min.js"] ; in resources/public/
:get-user-lang product-ns.api/get-user-lang
:js-init "/src/js/main.jsx" ; for Javascript projects
:cljs-init product-ns.client/init ; for ClojureScript projects
:client-keys {:mapbox-token "token123"}
;; git
:tags-url "https://gitlab.sig-gis.com/api/v4/projects/<PROJECT_ID>/repository/tags"}
:database {;; database
:host "localhost"
:port 5432
:dbname "app-name"
:user "app-name"
:password "app-name"
;; build-db
:admin-pass "postgres-password"
:file "db-backup.custom"
:dev-data false
:verbose true}
:mail {;; email
:host "smtp.gmail.com"
:user ""
:pass ""
:tls true
:port 587
:base-url "https://my.domain/"}
:https {;; https
:email "[email protected]"
:domain "app.sig-gis.com"
:path "/etc/letsencrypt"
:cert-only false
:webroot "./resources/public"}
:my-keys {;; product-ns
:ee-account "[email protected]"
:ee-key-path "gee-auth-key.json"
:mapbox-token "pk..."
:mapquest-key "GF..."
:nicfi-key "e5..."}}