Compare commits
2 Commits
e10fc5cb48
...
98b21f83da
Author | SHA1 | Date |
---|---|---|
Paolo Asperti | 98b21f83da | |
Paolo Asperti | 3e4323b63f |
|
@ -8,4 +8,8 @@ COPY run.sh /
|
||||||
EXPOSE 514/tcp
|
EXPOSE 514/tcp
|
||||||
EXPOSE 514/udp
|
EXPOSE 514/udp
|
||||||
|
|
||||||
|
ENV TARGET_HOST
|
||||||
|
ENV TARGET_PROTO
|
||||||
|
ENV TARGET_PORT
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/sh", "/run.sh"]
|
ENTRYPOINT ["/bin/sh", "/run.sh"]
|
5
run.sh
5
run.sh
|
@ -18,6 +18,7 @@ cat >/etc/rsyslog.conf <<EOF
|
||||||
\$FileCreateMode 0640
|
\$FileCreateMode 0640
|
||||||
\$DirCreateMode 0755
|
\$DirCreateMode 0755
|
||||||
\$Umask 0022
|
\$Umask 0022
|
||||||
|
\$PreserveFQDN on
|
||||||
|
|
||||||
module(load="imudp")
|
module(load="imudp")
|
||||||
input(type="imudp" port="514" )
|
input(type="imudp" port="514" )
|
||||||
|
@ -27,6 +28,10 @@ input(type="imtcp" port="514" )
|
||||||
|
|
||||||
module(load="mmutf8fix")
|
module(load="mmutf8fix")
|
||||||
action(type="mmutf8fix" replacementChar="?" )
|
action(type="mmutf8fix" replacementChar="?" )
|
||||||
|
|
||||||
|
# If the hostname is not specified, we use fromhost
|
||||||
|
if (\$hostname == '') then set \$!hostname = \$fromhost;
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if [ "${TARGET_PROTO}" = "udp" ] ; then
|
if [ "${TARGET_PROTO}" = "udp" ] ; then
|
||||||
|
|
Loading…
Reference in New Issue