Skip to content

Commit

Permalink
[Infra] : Nginx 파일 수정 (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
NCOOL060580327 authored Feb 21, 2025
1 parent e0bfcbb commit d51e43a
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .platform/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ http {
}

upstream node_exporter {
server 127.0.0.1:9100;
server localhost:9100;
keepalive 1024;
}

Expand All @@ -56,13 +56,10 @@ http {
}

location /metrics {
proxy_pass http://node_exporter;
proxy_http_version 1.1;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:9100;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

access_log /var/log/nginx/access.log main;
Expand Down

0 comments on commit d51e43a

Please sign in to comment.