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 {
|
server {
|
||||||
listen {{ item.value.port }};
|
listen {{ item.value.port }};
|
||||||
server_name {{ item.key }};
|
server_name {{ item.key }};
|
||||||
{% if 'dir_log' in item.value %}
|
|
||||||
|
|
||||||
access_log {{ item.value.dir_log }}/{{ item.key }}_access.log;
|
access_log /var/log/nginx/{{ item.key }}_access.log;
|
||||||
error_log {{ item.value.dir_log }}/{{ item.key }}_error.log;
|
error_log /var/log/nginx/{{ item.key }}_error.log;
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
location /.well-known/acme-challenge/ {
|
location /.well-known/acme-challenge/ {
|
||||||
alias /var/www/acme/.well-known/acme-challenge/;
|
alias /var/www/acme/.well-known/acme-challenge/;
|
||||||
|
@ -32,11 +30,9 @@ server {
|
||||||
server {
|
server {
|
||||||
listen {{ item.value.ssl.port }} ssl;
|
listen {{ item.value.ssl.port }} ssl;
|
||||||
server_name {{ item.key }};
|
server_name {{ item.key }};
|
||||||
{% if 'dir_log' in item.value %}
|
|
||||||
|
|
||||||
access_log {{ item.value.dir_log }}/{{ item.key }}_access.log;
|
access_log /var/log/nginx/{{ item.key }}_access.log;
|
||||||
error_log {{ item.value.dir_log }}/{{ item.key }}_error.log;
|
error_log /var/log/nginx/{{ item.key }}_error.log;
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
add_header X-Frame-Options SAMEORIGIN;
|
add_header X-Frame-Options SAMEORIGIN;
|
||||||
add_header X-Content-Type-Options nosniff;
|
add_header X-Content-Type-Options nosniff;
|
||||||
|
|
Loading…
Reference in a new issue