Private
Public Access
2
0

caddy: fix site. in global log

This commit is contained in:
2026-02-12 06:48:37 +01:00
parent 91f0e92014
commit f80735417b

View File

@@ -1,7 +1,7 @@
{ {
http_port {{ caddy_http_port }} http_port {{ caddy_http_port }}
https_port {{ caddy_https_port }} https_port {{ caddy_https_port }}
{% if caddy_default_bind != "" %} {% if caddy_default_bind != None %}
default_bind {{ caddy_default_bind }} default_bind {{ caddy_default_bind }}
{% endif %} {% endif %}
order geoip2_vars first order geoip2_vars first
@@ -53,12 +53,12 @@
{% endif %} {% endif %}
log waf { log waf {
format {{ site.log_format | default(caddy_sites_defaults.log_format) }} format {{ caddy_sites_defaults.log_format }}
include "http.handlers.waf" include "http.handlers.waf"
format append { format append {
waf_id {{ caddy_my_name }} waf_id {{ caddy_my_name }}
} }
{% if site.log_to_file | default(caddy_sites_defaults.log_to_file) %} {% if caddy_sites_defaults.log_to_file %}
output file {{ caddy_log_dir }}/waf.log output file {{ caddy_log_dir }}/waf.log
{% else %} {% else %}
output stdout output stdout