system-config/container-config/nginx/sites/metrics
Mathieu Strypsteen 1648634933
All checks were successful
ShellCheck / shellcheck (push) Successful in 17s
Unify nginx config
2024-11-20 17:38:13 +01:00

16 lines
407 B
Text

server {
server_name metrics.strypsteen.com;
listen 443 ssl;
listen [::]:443 ssl;
include snippets/headers.conf;
location = /api/v1/write {
set $upstream systemd-prometheus.;
proxy_pass http://$upstream:9090;
include snippets/proxy.conf;
}
location = /loki/api/v1/push {
set $upstream systemd-loki.;
proxy_pass http://$upstream:3100;
include snippets/proxy.conf;
}
}