summaryrefslogtreecommitdiff
path: root/playbooks.d/webserver-nginx
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2022-05-09 11:19:05 +0200
committerPatrick Spek <p.spek@tyil.nl>2022-05-09 11:19:05 +0200
commit25010ec7cb8d777f86d9f75f91b331ee7ad72970 (patch)
tree70fd9e0db9249bb30f883a3fd97265cfa54afbc4 /playbooks.d/webserver-nginx
parent0ec3dcd348c3ec295ed704d398f7e48548cd1c95 (diff)
Move access logs
Diffstat (limited to 'playbooks.d/webserver-nginx')
-rw-r--r--playbooks.d/webserver-nginx/playbook.bash2
-rw-r--r--playbooks.d/webserver-nginx/share/logrotate.conf2
-rw-r--r--playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.www2
3 files changed, 3 insertions, 3 deletions
diff --git a/playbooks.d/webserver-nginx/playbook.bash b/playbooks.d/webserver-nginx/playbook.bash
index e750eb6..03e4271 100644
--- a/playbooks.d/webserver-nginx/playbook.bash
+++ b/playbooks.d/webserver-nginx/playbook.bash
@@ -30,7 +30,7 @@ playbook_add()
"$(config "fs.etcdir")/nginx/sites-enabled.d/http" \
"$(config "fs.etcdir")/nginx/sites-enabled.d/https" \
"$(config "fs.etcdir")/nginx/snippets.d" \
- "$(config "fs.logdir")/nginx/access-logs" \
+ "$(config "fs.logdir")/nginx/access" \
/var/www
info "webserver/add" "Generating dhparam.pem"
diff --git a/playbooks.d/webserver-nginx/share/logrotate.conf b/playbooks.d/webserver-nginx/share/logrotate.conf
index d9c0732..0b07469 100644
--- a/playbooks.d/webserver-nginx/share/logrotate.conf
+++ b/playbooks.d/webserver-nginx/share/logrotate.conf
@@ -1,4 +1,4 @@
-/var/log/nginx/access-logs/*.log {
+/var/log/nginx/access/*.log {
daily
missingok
rotate -1
diff --git a/playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.www b/playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.www
index 46c0d71..15cfb46 100644
--- a/playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.www
+++ b/playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.www
@@ -7,7 +7,7 @@ server {
ssl_certificate /etc/letsencrypt/live/www.tyil.nl/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.tyil.nl/privkey.pem;
- access_log /var/log/nginx/access-logs/nl.tyil.log;
+ access_log /var/log/nginx/access/nl.tyil.log;
include /etc/nginx/snippets.d/certbot.conf;
include /etc/nginx/snippets.d/headers.conf;