-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.dist.yml
47 lines (43 loc) · 1.31 KB
/
config.dist.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
# App configs
app:
# App name
name: ${SLOTH_NAME:-sloth}
# Env mode (dev or prod)
mode: ${SLOTH_MODE:-dev}
# HTTP port
port: ${SLOTH_PORT:-8000}
# Hostname
hostname: ${SLOTH_HOSTNAME:-127.0.0.1}
# TLS configs
tls:
status: ${SLOTH_TLS_STATUS:-off}
crt_path: ${SLOTH_TLS_PEMPATH:-cert/server.crt}
key_path: ${SLOTH_TLS_KEYPATH:-cert/server.key}
# API Credentials
api:
# API Key
key: ${SLOTH_API_KEY:-b08a1a8d-aefa-40fe-8473-59412ae46d11}
# Global timeout
timeout: ${SLOTH_TIMEOUT:-50}
# Application Database
database:
# Database driver (sqlite3, mysql)
driver: ${SLOTH_DATABASE_DRIVER:-sqlite3}
# Database Host
host: ${SLOTH_DATABASE_MYSQL_HOST:-localhost}
# Database Port
port: ${SLOTH_DATABASE_MYSQL_PORT:-3306}
# Database Name
name: ${SLOTH_DATABASE_MYSQL_DATABASE:-sloth.db}
# Database Username
username: ${SLOTH_DATABASE_MYSQL_USERNAME:-root}
# Database Password
password: ${SLOTH_DATABASE_MYSQL_PASSWORD:-root}
# Log configs
log:
# Log level, it can be debug, info, warn, error, panic, fatal
level: ${SLOTH_LOG_LEVEL:-info}
# Output can be stdout or abs path to log file /var/logs/sloth.log
output: ${SLOTH_LOG_OUTPUT:-stdout}
# Format can be json
format: ${SLOTH_LOG_FORMAT:-json}