Skip to content

Commit

Permalink
[ci] nginx.conf 수정
Browse files Browse the repository at this point in the history
nginx.conf 수정
  • Loading branch information
YeaChan05 committed Jul 2, 2024
1 parent d0c803d commit e266210
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ services:
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.retention.time=168h'
- '--storage.tsdb.path=/prometheus'
networks:
- monitoring

grafana:
image: grafana/grafana
container_name: grafana
Expand All @@ -102,6 +102,7 @@ services:
- grafana-storage:/var/lib/grafana
networks:
- monitoring

mysqld_exporter:
image: quay.io/prometheus/mysqld-exporter
container_name: mysqld-exporter
Expand Down
46 changes: 23 additions & 23 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -74,29 +74,29 @@ http {
ssl_dhparam /etc/ssl/certs/ssl-dhparams.pem;
}

# server {
# listen 9090;
#
# location / {
# proxy_pass http://prometheus:9090;
# 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_set_header X-Forwarded-Proto $scheme;
# }
# }
#
# server {
# listen 3009;
#
# location / {
# proxy_pass http://grafana:3000;
# 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_set_header X-Forwarded-Proto $scheme;
# }
# }
server {
listen 9090;

location / {
proxy_pass http://prometheus:9090;
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_set_header X-Forwarded-Proto $scheme;
}
}

server {
listen 3009;

location / {
proxy_pass http://grafana:3000;
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_set_header X-Forwarded-Proto $scheme;
}
}

server {
if ($host = www.fundina.shop) {
Expand Down

0 comments on commit e266210

Please sign in to comment.