-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
32 lines (32 loc) · 847 Bytes
/
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
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
error_log /var/log/nginx/error.log;
events {
worker_connections 1024;
}
# TCP Proxy for Datadog Agent
stream {
server {
listen 3834; #listen for metrics
proxy_pass haproxy-app.agent.datadoghq.com:443;
}
server {
listen 3835; #listen for traces
proxy_pass trace.agent.datadoghq.com:443;
}
server {
listen 3836; #listen for processes
proxy_pass process.datadoghq.com:443;
}
server {
listen 3837; #listen for logs with use_http: true
proxy_pass agent-http-intake.logs.datadoghq.com:443;
}
server {
listen 10514; #listen for logs
proxy_ssl on; #TLS encapsulation
proxy_pass agent-intake.logs.datadoghq.com:10516;
}
}