|
9 | 9 | <% if repl? %>
|
10 | 10 | :repl/server
|
11 | 11 | {:port #long #or [#env REPL_PORT 7200]
|
12 |
| - :host #or [#env REPL_HOST "127.0.0.1"]}<% endif %> <% if nrepl? %> |
| 12 | + :host #or [#env REPL_HOST "127.0.0.1"]}<% endif %> |
| 13 | +<% if nrepl? %> |
13 | 14 | :nrepl/server
|
14 | 15 | {:port #long #or [#env NREPL_PORT 7000]
|
15 | 16 | :bind #or [#env NREPL_HOST "127.0.0.1"]}<% endif %>
|
16 |
| - <% if redis? %> |
| 17 | +<% if redis? %> |
17 | 18 | :cache/redis
|
18 | 19 | {:ttl 3600
|
19 | 20 | :conn {:pool {}
|
|
25 | 26 | :handler #ig/ref :handler/ring}
|
26 | 27 |
|
27 | 28 | :handler/ring
|
28 |
| - {:router #ig/ref :router/core <% if metrics? %> |
29 |
| - :metrics #ig/ref :metrics/prometheus <% endif %> |
| 29 | + {:router #ig/ref :router/core<% if metrics? %> |
| 30 | + :metrics #ig/ref :metrics/prometheus<% endif %> |
30 | 31 | :api-path "/api"
|
31 | 32 | :cookie-secret #or [#env COOKIE_SECRET "<<default-cookie-secret>>"]
|
32 | 33 | ;; from ring.middleware.defaults. anti-forgery `false` by default because services may not require it
|
|
53 | 54 |
|
54 | 55 | :reitit.routes/api
|
55 | 56 | {:base-path "/api"
|
56 |
| - :env #ig/ref :system/env <% if metrics? %> |
57 |
| - :metrics #ig/ref :metrics/prometheus <% endif %><% if conman? %> |
| 57 | + :env #ig/ref :system/env<% if metrics? %> |
| 58 | + :metrics #ig/ref :metrics/prometheus<% endif %><% if conman? %> |
58 | 59 | :query-fn #ig/ref :db.sql/query-fn<% endif %>
|
59 | 60 | }
|
60 | 61 |
|
|
63 | 64 |
|
64 | 65 | :router/core
|
65 | 66 | {:routes #ig/ref :router/routes
|
66 |
| - :env #ig/ref :system/env} <% if quartz? %> |
| 67 | + :env #ig/ref :system/env}<% if quartz? %> |
67 | 68 |
|
68 | 69 | :cronut/scheduler
|
69 |
| - {:schedule []}<% endif %> <% if selmer? %> |
| 70 | + {:schedule []}<% endif %><% if selmer? %> |
70 | 71 |
|
71 | 72 | :templating/selmer
|
72 |
| - {}<% endif %> <% if xtdb? %> |
| 73 | + {}<% endif %><% if xtdb? %> |
73 | 74 |
|
74 | 75 | ;; https://docs.xtdb.com/administration/configuring/
|
75 | 76 | :db.xtdb/node
|
|
84 | 85 | :db-dir "data/dev/index-store"
|
85 | 86 | :sync? true}}}
|
86 | 87 | :test {}
|
87 |
| - :prod {}} <% endif %><% if hikari? %> |
| 88 | + :prod {}}<% endif %><% if hikari? %> |
88 | 89 |
|
89 | 90 | :db.sql/hikari-connection
|
90 | 91 | #profile {:dev {:jdbc-url "jdbc:mysql://127.0.0.1:3306/<<name>>?characterEncoding=utf8"}
|
|
102 | 103 | :password "123456"
|
103 | 104 | :jdbc-url #env JDBC_URL
|
104 | 105 | :driver-class-name "com.mysql.jdbc.Driver"
|
105 |
| - :register-mbeans false}} <% endif %><% if conman? %> |
| 106 | + :register-mbeans false}}<% endif %><% if conman? %> |
106 | 107 |
|
107 | 108 | :db.sql/connection
|
108 | 109 | #profile {:dev {:jdbc-url "jdbc:postgresql://localhost/<<name>>?user=<<name>>&password=<<name>>"}
|
|
117 | 118 | {:conn #ig/ref :db.sql/connection
|
118 | 119 | :options {}
|
119 | 120 | :filename "queries.sql"
|
120 |
| - :env #ig/ref :system/env} <% endif %><% if migratus? %> |
| 121 | + :env #ig/ref :system/env}<% endif %><% if migratus? %> |
121 | 122 |
|
122 | 123 | :db.sql/migrations
|
123 | 124 | {:store :database
|
124 | 125 | :db {:datasource #ig/ref :db.sql/connection}
|
125 |
| - :migrate-on-init? true} <% endif %> |
| 126 | + :migrate-on-init? true}<% endif %> |
126 | 127 | }
|
0 commit comments