diff options
Diffstat (limited to 'roles/grafana')
| -rw-r--r-- | roles/grafana/tasks/main.yml | 2 | ||||
| -rw-r--r-- | roles/grafana/templates/grafana.nginx.conf.j2 | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/roles/grafana/tasks/main.yml b/roles/grafana/tasks/main.yml index 088d61c7..41a76e5c 100644 --- a/roles/grafana/tasks/main.yml +++ b/roles/grafana/tasks/main.yml @@ -92,7 +92,7 @@ when: proxy_type == "nginx" and grafana_hostname | length > 0 ansible.builtin.template: src: "grafana.nginx.conf.j2" - dest: "/etc/nginx/vhosts.d/grafana.conf" + dest: "/etc/nginx/conf.d/grafana.conf" owner: "root" group: "root" mode: "0644" diff --git a/roles/grafana/templates/grafana.nginx.conf.j2 b/roles/grafana/templates/grafana.nginx.conf.j2 index e6e1052c..a9c105ac 100644 --- a/roles/grafana/templates/grafana.nginx.conf.j2 +++ b/roles/grafana/templates/grafana.nginx.conf.j2 @@ -4,6 +4,9 @@ server { server_name {{ grafana_hostname }}; + access_log /var/log/nginx/access.log; + error_log /var/log/nginx/error.log; + location / { proxy_pass http://127.0.0.1:{{ grafana_port }}/; } |
