diff options
Diffstat (limited to 'roles/pihole')
| -rw-r--r-- | roles/pihole/tasks/main.yml | 2 | ||||
| -rw-r--r-- | roles/pihole/templates/pihole.nginx.conf.j2 | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/roles/pihole/tasks/main.yml b/roles/pihole/tasks/main.yml index f6101632..ccd4bd9f 100644 --- a/roles/pihole/tasks/main.yml +++ b/roles/pihole/tasks/main.yml @@ -154,7 +154,7 @@ when: proxy_type == "nginx" and pihole_hostname | length > 0 ansible.builtin.template: src: "pihole.nginx.conf.j2" - dest: "/etc/nginx/vhosts.d/pihole.conf" + dest: "/etc/nginx/conf.d/pihole.conf" owner: "root" group: "root" mode: "0644" diff --git a/roles/pihole/templates/pihole.nginx.conf.j2 b/roles/pihole/templates/pihole.nginx.conf.j2 index 91f0fea4..7a28b821 100644 --- a/roles/pihole/templates/pihole.nginx.conf.j2 +++ b/roles/pihole/templates/pihole.nginx.conf.j2 @@ -4,6 +4,9 @@ server { server_name {{ pihole_hostname }}; + access_log /var/log/nginx/access.log; + error_log /var/log/nginx/error.log; + location = / { return 301 /admin/; } |
