refactoring in between

This commit is contained in:
Nico Schottelius 2023-12-04 10:16:33 +01:00
commit a138276c54
10 changed files with 80 additions and 29 deletions

View file

@ -17,3 +17,4 @@ services:
- ./nginx:/etc/nginx/conf.d
- /ssl:/ssl
- /www:/www
- /mnt/logs/nginx:/var/log/nginx/

View file

@ -18,6 +18,16 @@
- dir
- test
- name: Create nginx log dir
ansible.builtin.file:
path: /home/{{ ansible_user }}/docker_compose/{{ matrix_service }}/nginx
state: directory
owner: "{{ ansible_user }}"
mode: '0755'
tags:
- dir
- test
- name: Create nginx config
ansible.builtin.template:
src: "nginx/elementweb.conf"

View file

@ -6,9 +6,9 @@ server {
ssl_certificate /ssl/chain.crt;
ssl_certificate_key /ssl/certificate.keyplain;
access_log /var/log/nginx/element/access-{{ inventory_hostname }}.log main;
access_log /var/log/nginx/element-access-{{ inventory_hostname }}.log main;
access_log /var/log/nginx/access-{{ inventory_hostname }}.log main;
error_log /var/log/nginx/element/error-{{ inventory_hostname }}.log notice;
error_log /var/log/nginx/element-error-{{ inventory_hostname }}.log notice;
error_log /var/log/nginx/error-{{ inventory_hostname }}.log notice;
error_page 403 404 /403_404.html;