-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.agent.conf
66 lines (52 loc) · 1.82 KB
/
nginx.agent.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
include common/main.conf;
http {
resolver 198.51.100.1:53 198.51.100.2:53 198.51.100.3:53 valid=60s;
client_max_body_size 1024M;
# Name: DC/OS Diagnostics (3DT)
# Reference: https://dcos.io/docs/1.9/administration/monitoring/#system-health-http-api-endpoint
upstream dddt {
server unix:/run/dcos/3dt.sock;
}
# Name: DC/OS Metrics
# Reference: https://dcos.io/docs/1.9/administration/monitoring/metrics/metrics-api/
upstream metrics {
server unix:/run/dcos/dcos-metrics-agent.sock;
}
include common/http.conf;
server {
server_name agent.mesos;
include common/server.conf;
include /opt/mesosphere/etc/adminrouter-listen-open.conf;
# Group: System
# Description: Component service status
location /system/health/v1 {
include common/proxy-headers.conf;
proxy_pass http://dddt;
}
## This non-yaml comment is ignored
# Group: Pkgpanda
# Description: DC/OS component package management
location /pkgpanda/ {
include common/proxy-headers.conf;
proxy_pass http://pkgpanda/;
proxy_redirect http://$http_host/ /pkgpanda/;
}
# This non-yaml comment is ignored
#---
# Group: System
# Description: Node, component service, and container (task) logs
location /system/v1/logs/v1/ {
include common/http-11.conf;
include common/proxy-headers.conf;
proxy_pass http://log/;
}
# This non-yaml comment is ignored
# ---
# Group: System
# Description: Node, container, and application metrics
location /system/v1/metrics/ {
include common/proxy-headers.conf;
proxy_pass http://metrics/;
}
}
}