-
Notifications
You must be signed in to change notification settings - Fork 0
/
.config.yml.dist
50 lines (49 loc) · 1.21 KB
/
.config.yml.dist
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
header:
specformat: "1.0"
spec:
general:
app_name: users-api
cors_origin: *
login_expiry: 15
remember_me_expiry: 43200
# used for http cookie site config and creating url for emails
frontend_url: "http://localhost:4000"
http_addr: :8080
http_write_timeout_sec: 15
http_read_timeout_sec: 15
http_idle_timeout_sec: 60
graceful_shutdown_wait_time_sec: 2
log_level: debug
smtp:
host: smtp.example.com
port: 587
username: test@gmail.com
password: password
from: mail@example.com
database:
driver: mysql
credentials:
host: localhost:3306
name: service
user: root
pass: dbpass
protocol: tcp
read_timeout_sec: 1
write_timeout_sec: 5
max_open_conn: 50
conn_lifetime_sec: 60
security:
whitelisted_endpoints:
- POST /api/v1/users # registration
- POST /api/v1/account/login # login
verify_keys:
- issuer_name: users-api
verify_key: |
-----BEGIN PUBLIC KEY-----
certificate contents
-----END PUBLIC KEY-----
sign_name: users-api
signing_key: |
-----BEGIN RSA PRIVATE KEY-----
certificate contents
-----END RSA PRIVATE KEY-----