-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.sample.yml
42 lines (40 loc) · 1.16 KB
/
config.sample.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
---
# api server configuration
server:
# api server listening ip
host: 127.0.0.1
# api server listening port
port: 8001
# keep-alive timeout to timeout seconds.
# If timeout is 0, keep-alive is disabled.
keep_alive: 60
# in bytes from an incoming form request will be read
forms_limit: 262144
# in bytes from an incoming json request will be read
json_limit: 1048576
# Sets the secret_key
secret_key: 8Xui8SN4mI+7egV/9dlfYYLGQJeEx4+DwmSQLwDVXJg=
ssl:
# if true starts the server using ssl config
enabled: no
# if true generates the self signed ssl certificate
generate_self_signed: yes
# If generate_self_signed is `NO`; enable the below 2 keys & specify the path
# key_file: key.pem
# cert_file: cert.pem
# mongo database configuration
mongo_db:
# mongo host to connect to
mongo_host: localhost
# port to connect to
mongo_port: 27017
# user if any to authenticate with mongo
auth_user: ""
# password for user authentication
auth_pass: ""
# configure any different db:collection for use internally
db:
# user database to connect
user_db: users
# user collection to query for user check
user_collection: users