-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.conf
50 lines (40 loc) · 972 Bytes
/
default.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
server {
listen 80;
server_name app.business-metrics.de;
index metrics.php;
root /repo/public;
location / {
add_header 'Access-Control-Allow-Origin' '*';
try_files $uri $uri/ /metrics.php?$args;
}
location ~ \.php$ {
fastcgi_keep_conn on;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass php:9000;
fastcgi_index metrics.php;
fastcgi_param APP_ENV "development";
fastcgi_read_timeout 300;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
}
}
upstream grafana {
server grafana:3000;
}
server {
listen 80;
server_name grafana.business-metrics.de;
location / {
proxy_pass http://grafana;
}
}
upstream prometheus {
server prometheus:9090;
}
server {
listen 80;
server_name prometheus.business-metrics.de;
location / {
proxy_pass http://prometheus;
}
}