-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
139 lines (131 loc) · 4.44 KB
/
.env.example
File metadata and controls
139 lines (131 loc) · 4.44 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# Example environment configuration
###
# Server configuration
###
# Port for the HTTP server (default: 3000)
SERVER_PORT=3000
# Absolute or relative path to static configuration files (./public)
SERVER_PATH_PUBLIC=./public
# Absolute or relative path where filter functions are located (./filter)
SERVER_PATH_FILTER=./filter
# Enable the built-in heartbeat endpoint (true)
SERVER_LOCATIONS_HEARTBEAT=true
# Enable custom endpoints defined in ENDPOINTS (true)
SERVER_LOCATIONS_ENDPOINTS=true
# Enable direct filesystem access (true)
SERVER_LOCATIONS_FILESYSTEM=true
# Cache-Control Header without authentication
SERVER_CACHE_HEADER='stale-while-revalidate=300, stale-if-error=3600'
# Cache-Control Header with authentication
SERVER_CACHE_HEADER_AUTH='private, no-cache'
# Socket timeout in milliseconds (5000 ms)
SERVER_TIMEOUTS_SOCKET=5000
# Keep-alive timeout in milliseconds (75000 ms)
SERVER_TIMEOUTS_KEEPALIVE=75000
# Headers timeout in milliseconds (80000 ms)
SERVER_TIMEOUTS_HEADERS=80000
# Request timeout in milliseconds (60000 ms)
SERVER_TIMEOUTS_REQUEST=60000
# Maximum number of requests per socket (1000 requests)
SERVER_MAX_REQUESTS=1000
###
# Filesystem behaviour
###
# Resolve file extensions automatically (true)
FILESYSTEM_RESOLVE_EXT=true
###
# Endpoint definitions
###
# JSON array with endpoints ([]):
ENDPOINTS='
[
{
"enable": true,
"path": "/api/v1/users",
"file": "data/users.yaml",
"format": "json"
}, {
"enable": true,
"path": "/api/v1/users/{id}",
"file": "data/users.yaml",
"format": "json",
"filter": "userById.js"
}
]'
###
# Authentication
###
# Enable OAuth2 authentication (false)
AUTH_ENABLE=false
# OAuth2 issuer URI
AUTH_OAUTH2_ISSUER=https://issuer.example.com
# JWKS endpoint providing public keys
AUTH_OAUTH2_JWKS=https://issuer.example.com/.well-known/jwks.json
# Expected audience value
AUTH_OAUTH2_AUDIENCE=my-audience
###
# Modifier modules
###
# Enable modifier pipeline (true)
MODIFIER_ENABLE=true
# Enable modifier for merging files (true)
MODIFIER_INCLUDE_ENABLE=true
###
# Default formatter
###
# Output format used when it is not specified (via file extensions e.g. http://example.com/file.json) or extension is not valid
FORMATTER_DEFAULT=json
###
# HTTP request logging
###
# Enable HTTP access logs (true)
LOGGING_HTTP_ENABLE=true
# Stream HTTP logs to stdout (false)
LOGGING_HTTP_STDOUT_ENABLE=false
# Log level for HTTP stdout logging (options: silent|fatal|error|warn|info|debug|trace; default: info)
LOGGING_HTTP_STDOUT_LEVEL=info
# Write HTTP logs to filesystem (true)
LOGGING_HTTP_FILE_ENABLE=true
# File path prefix for HTTP logs (./logs/access)
LOGGING_HTTP_FILE=./logs/access
# Log level for HTTP file logging (options: silent|fatal|error|warn|info|debug|trace; default: info)
LOGGING_HTTP_FILE_LEVEL=info
# Maximum size of each HTTP log before rotation (10M bytes)
LOGGING_HTTP_LOGROTATION_SIZE=10M
# How often HTTP logs rotate (options: daily|weekly; default: daily)
LOGGING_HTTP_LOGROTATION_FREQUENCY=daily
# Number of rotated HTTP logs to keep (180 files)
LOGGING_HTTP_LOGROTATION_LIMIT=180
# File extension for rotated HTTP logs (log)
LOGGING_HTTP_LOGROTATION_EXTENSION=log
# Date format in rotated HTTP log names (yyyy-MM-dd)
LOGGING_HTTP_LOGROTATION_DATEFORMAT=yyyy-MM-dd
# Create symlink to latest HTTP log (false)
LOGGING_HTTP_LOGROTATION_SYMLINK=false
###
# Application logging
###
# Enable application logs (true)
LOGGING_APP_ENABLE=true
# Stream application logs to stdout (true)
LOGGING_APP_STDOUT_ENABLE=true
# Log level for application stdout logging (options: silent|fatal|error|warn|info|debug|trace; default: warn)
LOGGING_APP_STDOUT_LEVEL=warn
# Write application logs to filesystem (true)
LOGGING_APP_FILE_ENABLE=true
# File path prefix for application logs (./logs/app)
LOGGING_APP_FILE=./logs/app
# Log level for application file logging (options: silent|fatal|error|warn|info|debug|trace; default: info)
LOGGING_APP_FILE_LEVEL=info
# Maximum size of each application log before rotation (10M bytes)
LOGGING_APP_LOGROTATION_SIZE=10M
# How often application logs rotate (options: daily|weekly; default: daily)
LOGGING_APP_LOGROTATION_FREQUENCY=daily
# Number of rotated application logs to keep (180 files)
LOGGING_APP_LOGROTATION_LIMIT=180
# File extension for rotated application logs (log)
LOGGING_APP_LOGROTATION_EXTENSION=log
# Date format in rotated application log names (yyyy-MM-dd)
LOGGING_APP_LOGROTATION_DATEFORMAT=yyyy-MM-dd
# Create symlink to latest application log (false)
LOGGING_APP_LOGROTATION_SYMLINK=false