www/caddy: Fix subdomain http access log (#4919)

* www/caddy: Emit subdomain http access logs in the same log collector as their wildcard parent

* add changelog
This commit is contained in:
Monviech
2025-09-02 09:52:37 +02:00
committed by GitHub
parent a691165cee
commit 2c4e372109
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -12,6 +12,7 @@ Add: Tabulator groupBy of domain and subdomain (opnsense/plugins/pull/4909)
Cleanup: Grid HTML and style
Fix: Tabulator 'Data Load Response Blocked' warning
Fix: setup.sh interaction with caddy storage and permissions (opnsense/plugins/pull/4911)
Fix: Emit subdomain http access logs when wildcard parent has logging enabled (opnsense/plugins/issues/4914)
2.0.2
@@ -647,7 +647,7 @@ http://{{ domain }} {
{% if reverse.DisableTls|default("0") == "1" %}http://{% endif %}{{ subdomain.FromDomain|default("") }}{% if reverse.FromPort %}:{{ reverse.FromPort }}{% endif %} {
{% if reverse.AccessLog|default("0") == "1" %}
{% if generalSettings.LogAccessPlain|default("0") == "0" %}
log {{ subdomain['@uuid'] }}
log {{ reverse['@uuid'] }}
{% else %}
log {
output file /var/log/caddy/access/{{ subdomain['@uuid'] }}.log {