Skip to content

Commit

Permalink
feat: enable grafana api
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh6790 committed Mar 11, 2024
1 parent 79ef039 commit e986344
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions agent/templates/agent/nginx.conf.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,13 @@ server {
}
}

location /api {
auth_basic "Grafana API";
auth_basic_user_file /home/frappe/agent/nginx/grafana-ui.htpasswd;

proxy_pass http://127.0.0.1:3000/api;
}

location / {
return 307 https://$host/grafana;
}
Expand Down

0 comments on commit e986344

Please sign in to comment.