This repository has been archived by the owner on Mar 22, 2023. It is now read-only.
/
config-minimesos.edn
65 lines (51 loc) · 2.77 KB
/
config-minimesos.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
{
; ---------- Cluster ----------
:waiter-principal "waiter@example.com"
:zookeeper {:connect-string #config/env "WAITER_ZOOKEEPER_CONNECT_STRING"}
; ---------- Metrics - Internal ----------
:metrics-config {
:codahale-reporters {
:graphite {
:factory-fn waiter.reporter/graphite-reporter
:filter-regex #config/regex "^jvm.*|^waiter.*"
:host "localhost"
:period-ms 6000
:pickled? true
:prefix "waiter-internal"
:port #config/env-int "GRAPHITE_SERVER_PORT"}}}
; ---------- Network ----------
;; Set the bind address to a specific IP:
:host "127.0.0.1"
;; Set the port:
:port #config/env-int "WAITER_PORT"
; ---------- Security ----------
:authenticator-config {:jwt {:http-options {:conn-timeout 10000
:socket-timeout 10000
:spnego-auth false}
:issuer "test.com"
:jwks-url #config/env "JWKS_SERVER_URL"
:oidc-authorize-uri #config/env "OIDC_AUTHORIZE_URL"
:oidc-token-uri #config/env "OIDC_TOKEN_URL"
:subject-key :sub
:supported-algorithms #{:eddsa :rs256}
:token-type "JWT"
:update-interval-ms 60000}
:kind :one-user
:one-user {;; The user account used to launch services:
:run-as-user #config/env "WAITER_AUTH_RUN_AS_USER"}}
; ---------- Scheduling ----------
:scheduler-config {
;; Use Marathon for scheduling instances:
:kind :marathon
:marathon {
;; The URL for your Marathon HTTP API:
:url #config/env "WAITER_MARATHON"
:mesos-agent-port 5051
:http-options {:conn-timeout 10000
:socket-timeout 10000
:spnego-auth false}
:marathon-descriptor-builder {:factory-fn waiter.scheduler.marathon/default-marathon-descriptor-builder}}}
; ---------- CORS ----------
:cors-config {:kind :allow-all}
;; Require fewer failed health checks
:health-check-config {:failed-check-threshold 2}}