-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.httpe.conf
37 lines (30 loc) · 1.59 KB
/
example.httpe.conf
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
[server]
## Defines the IP address and port the API server listens on.
## Environment variable HTTPE_SERVER_ADDRESS has precedence.
address = "0.0.0.0:3000"
## A working directory. Results of asynchronous actions are stored there.
## Environment variable HTTPE_SERVER_DATA_DIR has precedence.
data_dir = "/var/lib/httpe"
## After which period old data will be deleted from {data_dir}.
## Environment variable HTTPE_SERVER_DATA_RETENTION has precedence.
## Format: NumberUnit, e.g. 1d
## Supported units: s (seconds), min (minutes), h (hours), d (days)
## w (weeks), m (months = 30.5 days)
## default: retention = "1d"
data_retention = "1d"
## If both cert_file and key_file are specified, then httpe will use them to serve the API with TLS/https.
## Intermediate certificates should be included in cert_file if required.
## Environment variables HTTPE_SERVER_CERT_FILE and HTTPE_SERVER_KEY_FILE have precedence.
#cert_file = "/etc/ssl/certs/httpe/server.crt"
#key_file = "/etc/ssl/certs/httpe/server.key"
## Specifies file for server access logs. Logs will be written in Combined Log Format.
## Environment variable HTTPE_SERVER_ACCESS_LOG_FILE has precedence.
## If this is not set, the access logs are disabled.
access_log_file = "/var/log/httpe/access.log"
## Specifies sever log details. Logging levels error, info, debug are supported.
## Environment variables HTTPE_SERVER_LOG_FILE and HTTPE_SERVER_LOG_LEVEL have precedence.
log_file = "/var/log/httpe/server.log"
log_level = "info"
## Specifies the rules file
## Environment variable HTTPE_SERVER_RULES_FILE has precedence.
rules_file = "/etc/httpe/rules.yml"