jean-cloud-services/old_services/node_metrics/nginx_server.conf

30 lines
879 B
Plaintext
Raw Normal View History

2024-01-02 16:50:14 +00:00
server {
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
ssl_certificate /etc/letsencrypt/live/node_metrics/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/node_metrics/privkey.pem;
server_name vandamme.jean-cloud.net www.vandamme.jean-cloud.net;
location /node {
proxy_pass http://node-exporter:9100/metrics;
auth_basic "Restricted area";
auth_basic_user_file /data/node_metrics/htpasswd;
}
location /docker {
proxy_pass http://docker-exporter:8081/metrics;
auth_basic "Restricted area";
auth_basic_user_file /data/node_metrics/htpasswd;
}
location /docker-official {
proxy_pass http://unix:/var/run/docker-metrics.sock:/metrics;
auth_basic "Restricted area";
auth_basic_user_file /data/node_metrics/htpasswd;
}
location / {
proxy_pass https://jean-cloud.net/404;
}
}