Skip to content

Commit e12bfad

Browse files
[Infra] : Nginx 파일 수정
1 parent e0bfcbb commit e12bfad

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.platform/nginx.conf

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ http {
3232
}
3333

3434
upstream node_exporter {
35-
server 127.0.0.1:9100;
35+
server localhost:9100;
3636
keepalive 1024;
3737
}
3838

@@ -56,13 +56,10 @@ http {
5656
}
5757

5858
location /metrics {
59-
proxy_pass http://node_exporter;
60-
proxy_http_version 1.1;
61-
proxy_set_header Connection $connection_upgrade;
62-
proxy_set_header Upgrade $http_upgrade;
63-
proxy_set_header Host $host;
64-
proxy_set_header X-Real-IP $remote_addr;
65-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
59+
proxy_pass http://localhost:9100;
60+
proxy_set_header Host $host;
61+
proxy_set_header X-Real-IP $remote_addr;
62+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
6663
}
6764

6865
access_log /var/log/nginx/access.log main;

0 commit comments

Comments
 (0)