refactoring in between
This commit is contained in:
parent
fc62f9cbfe
commit
a138276c54
10 changed files with 80 additions and 29 deletions
|
|
@ -17,3 +17,4 @@ services:
|
|||
- ./nginx:/etc/nginx/conf.d
|
||||
- /ssl:/ssl
|
||||
- /www:/www
|
||||
- /mnt/logs/nginx:/var/log/nginx/
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue