34 lines
862 B
Plaintext
34 lines
862 B
Plaintext
upstream nodeexporter {
|
|
server 127.0.0.1:9100;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name monitoring.mondomaine.tld;
|
|
|
|
location / {
|
|
proxy_pass http://nodeexporter;
|
|
}
|
|
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
server_name monitoring.mondomaine.tld;
|
|
|
|
error_log /var/log/nginx/monitoring.mondomaine.tld-proxy-error.log;
|
|
access_log /var/log/nginx/monitoring.mondomaine.tld-proxy-access.log;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/monitoring.mondomaine.tld/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/monitoring.mondomaine.tld/privkey.pem;
|
|
|
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
|
|
|
location / {
|
|
proxy_pass http://nodeexporter;
|
|
}
|
|
|
|
} |