mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-29 20:18:05 +01:00
6cf4596292
Add config item in harbor.yml Make fowarding rule configurable Signed-off-by: DQ <dengq@vmware.com>
11 lines
394 B
Django/Jinja
11 lines
394 B
Django/Jinja
# Rsyslog configuration file for docker.
|
|
|
|
template(name="DynaFile" type="string" string="/var/log/docker/%programname%.log")
|
|
|
|
if $programname != "rsyslogd" then {
|
|
{%if log_external %}
|
|
action(type="omfwd" Target="{{log_ep_host}}" Port="{{log_ep_port}}" Protocol="{{log_ep_protocol}}" Template="RSYSLOG_SyslogProtocol23Format")
|
|
{% else %}
|
|
action(type="omfile" dynaFile="DynaFile")
|
|
{% endif %}
|
|
} |