-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
config.prod.yml
74 lines (64 loc) · 2.3 KB
/
config.prod.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
# App configs
app:
# Env mode (dev or prod)
mode: ${PEANUT_APP_MODE:-prod}
# HTTP port
port: ${PEANUT_API_PORT:-80}
# Hostname
hostname: ${PEANUT_API_HOSTNAME:-127.0.0.1}
# TLS configs
tls:
status: ${PEANUT_API_TLS_STATUS:-off}
pemPath: ${PEANUT_API_TLS_PEMPATH:-cert/server.pem}
keyPath: ${PEANUT_API_TLS_KEYPATH:-cert/server.key}
# Containerization runtime (supported docker)
containerization:
driver: ${PEANUT_CONTAINERIZATION_DRIVER:-docker}
# Clean up stale images, volumes and networks
autoClean: ${PEANUT_CONTAINERIZATION_AUTO_CLEAN:-true}
# Time to cache docker images tags
cacheTagsTimeInMinutes: ${PEANUT_CONTAINERIZATION_CACHE_TIME:-10080}
# App Storage
storage:
# Type (only local supported)
type: ${PEANUT_STORAGE_TYPE:-local}
# Local Path
path: ${PEANUT_STORAGE_PATH:-/etc/peanut/storage}
# API Configs
api:
key: ${PEANUT_API_KEY:-6c68b836-6f8e-465e-b59f-89c1db53afca}
# Async Workers
workers:
# Queue max capacity
buffer: ${PEANUT_WORKERS_CHAN_CAPACITY:-5000}
# Number of concurrent workers
count: ${PEANUT_WORKERS_COUNT:-4}
# Runtime, Requests/Response and Peanut Metrics
metrics:
prometheus:
# Route for the metrics endpoint
endpoint: ${PEANUT_METRICS_PROM_ENDPOINT:-/metrics}
# Application Database
database:
# Database driver
driver: ${PEANUT_DB_DRIVER:-etcd}
# Etcd Configs
etcd:
# Etcd database name or prefix
databaseName: ${PEANUT_DB_ETCD_DB:-peanut}
# Etcd username
username: ${PEANUT_DB_ETCD_USERNAME:- }
# Etcd password
password: ${PEANUT_DB_ETCD_PASSWORD:- }
# Etcd endpoints
endpoints: ${PEANUT_DB_ETCD_ENDPOINTS:-http://127.0.0.1:2379}
# Timeout in seconds
timeout: 30
# Log configs
log:
# Log level, it can be debug, info, warn, error, panic, fatal
level: ${PEANUT_LOG_LEVEL:-info}
# Output can be stdout or abs path to log file /var/logs/peanut.log
output: ${PEANUT_LOG_OUTPUT:-/var/logs/peanut.log}
# Format can be json
format: ${PEANUT_LOG_FORMAT:-json}