move to a unified log, stopping all access logs for individual sites.

This commit is contained in:
Nick Craig
2022-03-15 08:12:35 -04:00
parent 469ecadbbb
commit bc90dd58d6
5 changed files with 20 additions and 14 deletions

View File

@@ -4,6 +4,7 @@
server {
set $forward_scheme {{ forward_scheme }};
set $server "{{ forward_host }}";
set $path "{{ forward_path }}";
set $port {{ forward_port }};
{% include "_listen.conf" %}
@@ -19,8 +20,9 @@ proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
{% endif %}
access_log /data/logs/proxy-host-{{ id }}_access.log proxy;
error_log /data/logs/proxy-host-{{ id }}_error.log warn;
#disabling individual logs
#access_log /data/logs/proxy-host-{{ id }}_access.log proxy;
#error_log /data/logs/proxy-host-{{ id }}_error.log warn;
{{ advanced_config }}
@@ -64,7 +66,8 @@ proxy_http_version 1.1;
{% endif %}
{% endif %}
#do the proxy!
proxy_pass $forward_scheme://$server:$port$path$request_uri;
}
{% endif %}