-
Notifications
You must be signed in to change notification settings - Fork 0
/
badaas.example.yml
82 lines (68 loc) · 2.07 KB
/
badaas.example.yml
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
# The settings for the database.
database:
# The host of the database server.
# (mandatory)
host: e2e-db-1
# The port of the database server.
# (mandatory)
port: 26257
# The sslmode of the connection to the database server.
# (mandatory)
sslmode: disable
# The username of the account on the database server.
# (mandatory)
username: root
# The password of the account on the database server.
# (mandatory)
password: postgres
# The settings for the initialization of the database server.
init:
# Number of time badaas will try to establish a connection to the database server.
# default (10)
retry: 10
# Waiting time between connection, in seconds.
# default (5)
retryTime: 5
# The settings for the http server.
server:
# The address to bind badaas to.
# default ("0.0.0.0")
host: ""
# The port badaas should use.
# default (8000)
port: 8000
# The maximum timeout for the http server in seconds.
# default (15)
timeout: 15
# The settings for the pagination.
pagination:
page:
# The maximum number of record per page
# default (100)
max: 100
# The settings for the logger.
logger:
# Either `dev` or `prod`
# default (`prod`)
mode: prod
request:
# Change the log emitted when badaas receives a request on a valid endpoint.
template: "Receive {{method}} request on {{url}}"
# The settings for session service
# This section contains some good defaults, don't change thoses value unless you need to.
session:
# The duration of a user session, in seconds
# Default (14400) equal to 4 hours
duration: 14400
# The refresh interval in seconds. Badaas refresh it's internal session cache periodically.
# Default (30)
pullInterval: 30
# The duration in which the user can renew it's session by making a request.
# Default (3600) equal to 1 hour
rollDuration: 3600
# The settings for the first run.
default:
# The admin settings for the first run
admin:
# The admin password for the first run. Won't change is the admin user already exists.
password: admin