-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnginx.conf
43 lines (35 loc) · 1.03 KB
/
nginx.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
38
39
40
41
42
43
daemon off;
events {
worker_connections 4096;
}
http {
resolver 127.0.0.11;
# Set lua search path
lua_package_path '/code/lua/?.lua;;';
error_log /dev/stderr error;
access_log /dev/stdout combined;
# Disable error logging when a failure occurs for the TCP or UDP cosockets
lua_socket_log_errors off;
# Increase cosocket connection pool (default 30)
lua_socket_pool_size 100;
# Increase default socket keepalive
lua_socket_keepalive_timeout 10m;
# Increase the default max body size (PERF-2492)
client_max_body_size 2m;
# Allow underscores in headers
underscores_in_headers on;
lua_transform_underscores_in_response_headers off;
server {
listen 9411;
location /zipkin/api/ {
content_by_lua_file /code/lua/services.lua;
}
location / {
proxy_pass http://zipkin-uswest1a:9411/;
}
location /zipkin/ {
proxy_pass http://zipkin-uswest1a:9411;
}
}
}
# vim: syntax=nginx ts=4 sw=4 et