feat: change log folder for nginx
This commit is contained in:
parent
bfb7daa541
commit
d1cdc29d3c
1 changed files with 4 additions and 8 deletions
|
@ -5,11 +5,9 @@
|
|||
server {
|
||||
listen {{ item.value.port }};
|
||||
server_name {{ item.key }};
|
||||
{% if 'dir_log' in item.value %}
|
||||
|
||||
access_log {{ item.value.dir_log }}/{{ item.key }}_access.log;
|
||||
error_log {{ item.value.dir_log }}/{{ item.key }}_error.log;
|
||||
{% endif %}
|
||||
access_log /var/log/nginx/{{ item.key }}_access.log;
|
||||
error_log /var/log/nginx/{{ item.key }}_error.log;
|
||||
|
||||
location /.well-known/acme-challenge/ {
|
||||
alias /var/www/acme/.well-known/acme-challenge/;
|
||||
|
@ -32,11 +30,9 @@ server {
|
|||
server {
|
||||
listen {{ item.value.ssl.port }} ssl;
|
||||
server_name {{ item.key }};
|
||||
{% if 'dir_log' in item.value %}
|
||||
|
||||
access_log {{ item.value.dir_log }}/{{ item.key }}_access.log;
|
||||
error_log {{ item.value.dir_log }}/{{ item.key }}_error.log;
|
||||
{% endif %}
|
||||
access_log /var/log/nginx/{{ item.key }}_access.log;
|
||||
error_log /var/log/nginx/{{ item.key }}_error.log;
|
||||
|
||||
add_header X-Frame-Options SAMEORIGIN;
|
||||
add_header X-Content-Type-Options nosniff;
|
||||
|
|
Loading…
Reference in a new issue