custom nginx log location

master
HgO 2021-03-26 18:01:16 +01:00
parent b8e3d60767
commit 698f1ee1e3
2 changed files with 7 additions and 0 deletions

View File

@ -26,6 +26,7 @@ mumble_web_websockify_port: "64737"
mumble_web_nginx_enabled: yes mumble_web_nginx_enabled: yes
mumble_web_nginx_config_dir: /etc/nginx mumble_web_nginx_config_dir: /etc/nginx
mumble_web_nginx_log_dir: /var/log/nginx
mumble_web_nginx_generate_dhparam: yes mumble_web_nginx_generate_dhparam: yes
mumble_web_nginx_dhparam: "{{ mumble_web_nginx_config_dir }}/ssl/dhparam.pem" mumble_web_nginx_dhparam: "{{ mumble_web_nginx_config_dir }}/ssl/dhparam.pem"
mumble_web_nginx_dhparam_size: 2048 mumble_web_nginx_dhparam_size: 2048

View File

@ -15,6 +15,9 @@ server {
try_files $uri =404; try_files $uri =404;
} }
{% endif %} {% endif %}
access_log {{ mumble_nginx_log_dir }}/{{ mumble_nginx_domains | first }}-access.log;
error_log {{ mumble_nginx_log_dir }}/{{ mumble_nginx_domains | first }}-error.log;
} }
server { server {
@ -59,6 +62,9 @@ server {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade; proxy_set_header Connection $connection_upgrade;
} }
access_log {{ mumble_nginx_log_dir }}/{{ mumble_nginx_domains | first }}-access.log;
error_log {{ mumble_nginx_log_dir }}/{{ mumble_nginx_domains | first }}-error.log;
} }
map $http_upgrade $connection_upgrade { map $http_upgrade $connection_upgrade {