forked from sharetribe/harmony
-
Notifications
You must be signed in to change notification settings - Fork 0
/
harmony-api.edn
41 lines (38 loc) · 1.73 KB
/
harmony-api.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
{:web-server
{:port #config/prop ["PORT" 8085]
:dev-mode? false}
:connection-pool
{:username #config/prop ["DB_USER" "root"]
:password #config/prop ["DB_PASSWORD" "harmony-root"]
:database-name #config/prop ["DB_NAME" "harmony_db"]
:server-name #config/prop ["DB_HOST" "127.0.0.1"]
:port-number #config/prop ["DB_PORT" 3306]
:connection-timeout #config/prop ["DB_CONN_TIMEOUT" 30000]
:validation-timeout #config/prop ["DB_VALID_TIMEOUT" 5000]
:idle-timeout #config/prop ["DB_IDLE_TIMEOUT" 600000]
:minimum-idle #config/prop ["DB_MIN_IDLE" 10]
:maximum-pool-size #config/prop ["DB_MAX_POOL" 10]}
:basic-auth
{:disable-basic-auth #config/prop ["DISABLE_BASIC_AUTH" "false"]
:realm #config/prop ["BASIC_AUTH_REALM" "Harmony-api"]
:credentials {#config/prop ["BASIC_AUTH_USER" "user"] #config/prop ["BASIC_AUTH_PASSWORD" "secret"]}}
:sentry
{:dsn #config/prop ["SENTRY_DSN" ""]
:environment #config/prop ["SENTRY_ENVIRONMENT" "production"]}
:release #config/prop ["HARMONY_RELEASE" ""]
;; Note! For leiningen plugin the dev mode config is in project.clj
:migrations
{:store :database
:migration-dir "migrations"
:db {:subprotocol "mysql"
:subname #config/join ["//"
#config/prop ["DB_HOST" "127.0.0.1"]
":"
#config/prop ["DB_PORT" "3306"]
"/"
#config/prop ["DB_NAME" "harmony_db"]]
:user #config/prop ["DB_USER" "root"]
:password #config/prop ["DB_PASSWORD" "harmony-root"]}}
:api-authentication
{:disable-authentication #config/prop ["DISABLE_API_AUTHENTICATION" "false"]
:token-secrets #config/prop ["AUTH_TOKEN_SECRETS" "secret_key1,secret_key2"]}}