1+ # Secret will be used to sign session cookies, CSRF tokens and for other encryption utilities.
2+ # It is highly recommended to change this value before running cerebro in production.
3+ secret = "ki:s:[[@=Ag?QI`W2jMwkY:eqvrJ]JqoJyi2axj3ZvOv^/KavOT4ViJSv?6YY4[N"
4+
5+ # Application base path
6+ basePath = "/"
7+
8+ # Defaults to RUNNING_PID at the root directory of the app.
9+ # To avoid creating a PID file set this value to /dev/null
10+ #pidfile.path = "/var/run/cerebro.pid"
11+ pidfile.path=/dev/null
12+
13+ # Rest request history max size per user
14+ rest.history.size = 50 // defaults to 50 if not specified
15+
16+ # Path of local database file
17+ #data.path: "/var/lib/cerebro/cerebro.db"
18+ data.path = "./cerebro.db"
19+
20+ play {
21+ # Cerebro port, by default it's 9000 (play's default)
22+ server.http.port = ${?CEREBRO_PORT}
23+ }
24+
25+ es = {
26+ gzip = true
27+ }
28+
29+ # Authentication
30+ auth = {
31+ # either basic or ldap
32+ type: ${?AUTH_TYPE}
33+ settings {
34+ # LDAP
35+ url = ${?LDAP_URL}
36+ # OpenLDAP might be something like "ou=People,dc=domain,dc=com"
37+ base-dn = ${?LDAP_BASE_DN}
38+ # Usually method should be "simple" otherwise, set it to the SASL mechanisms to try
39+ method = ${?LDAP_METHOD}
40+ # user-template executes a string.format() operation where
41+ # username is passed in first, followed by base-dn. Some examples
42+ # - %s => leave user untouched
43+ # - %s@domain.com => append "@domain.com" to username
44+ # - uid=%s,%s => usual case of OpenLDAP
45+ user-template = ${?LDAP_USER_TEMPLATE}
46+ // User identifier that can perform searches
47+ bind-dn = ${?LDAP_BIND_DN}
48+ bind-pw = ${?LDAP_BIND_PWD}
49+ group-search {
50+ // If left unset parent's base-dn will be used
51+ base-dn = ${?LDAP_GROUP_BASE_DN}
52+ // Attribute that represent the user, for example uid or mail
53+ user-attr = ${?LDAP_USER_ATTR}
54+ // Define a separate template for user-attr
55+ // If left unset parent's user-template will be used
56+ user-attr-template = ${?LDAP_USER_ATTR_TEMPLATE}
57+ // Filter that tests membership of the group. If this property is empty then there is no group membership check
58+ // AD example => memberOf=CN=mygroup,ou=ouofthegroup,DC=domain,DC=com
59+ // OpenLDAP example => CN=mygroup
60+ group = ${?LDAP_GROUP}
61+ }
62+
63+ # Basic auth
64+ username = ${?BASIC_AUTH_USER}
65+ password = ${?BASIC_AUTH_PWD}
66+ }
67+ }
68+
69+ # A list of known hosts
70+ hosts = [
71+ # {
72+ # host = "http://host.docker.internal:9250"
73+ # name = "Opensearch cluster"
74+ # headers-whitelist = [ "x-proxy-user", "x-proxy-roles", "X-Forwarded-For" ]
75+ # }
76+ # Example of host with authentication
77+ {
78+ host = "https://host.docker.internal:9250"
79+ name = "Opensearch Cluster"
80+ auth = {
81+ username = "admin"
82+ password = "admin"
83+ }
84+ }
85+ ]
86+ # insecure option for OpenSearch
87+ play.ws.ssl.loose.acceptAnyCertificate = true
0 commit comments