Commit 24012d3a authored by Florian Pritz's avatar Florian Pritz
Browse files

dbscripts: Use reduced nginx log format and log to file



Signed-off-by: Florian Pritz's avatarFlorian Pritz <bluewind@xinu.at>
parent 714956bf
......@@ -21,6 +21,9 @@
- name: create ssl cert
command: certbot certonly --email webmaster@archlinux.org --agree-tos --rsa-key-size 4096 --renew-by-default --webroot -w {{letsencrypt_validation_dir}} -d '{{ repos_domain }}' creates='/etc/letsencrypt/live/{{ repos_domain }}/fullchain.pem'
- name: make nginx log dir
file: path=/var/log/nginx/{{ repos_domain }} state=directory owner=root group=root mode=0755
- name: set up nginx
template: src=nginx.d.conf.j2 dest=/etc/nginx/nginx.d/dbscripts.conf owner=root group=root mode=0644
notify:
......
......@@ -8,6 +8,8 @@ server {
satisfy any;
access_log /var/log/nginx/{{ repos_domain }}/access.log reduced;
location /lastupdate {
allow all;
}
......@@ -57,6 +59,8 @@ server {
satisfy any;
access_log /var/log/nginx/{{ repos_domain }}/access.log reduced;
location /lastupdate {
allow all;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment