1
1
Fork 0
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-06-10 06:36:08 +02:00

dbscripts: Use reduced nginx log format and log to file

Signed-off-by: Florian Pritz <bluewind@xinu.at>
This commit is contained in:
Florian Pritz 2018-07-05 17:18:15 +02:00
parent 714956bf42
commit 24012d3a6a
2 changed files with 7 additions and 0 deletions

View File

@ -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:

View File

@ -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;
}