mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user