Skip to content

Commit 9491f86

Browse files
authored
Merge pull request #148 from thin-edge/feat-mosquitto-logging
feat: configure mosquitto to log only to syslog
2 parents 4d960b7 + e516695 commit 9491f86

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
1+
# Place your local configuration in /etc/mosquitto/conf.d/
2+
#
3+
# A full description of the configuration file is at
4+
# /usr/share/doc/mosquitto/examples/mosquitto.conf.example
5+
6+
pid_file /run/mosquitto/mosquitto.pid
7+
8+
persistence true
9+
persistence_location /var/lib/mosquitto/
10+
11+
# log to syslog instead of file
112
log_dest syslog
213
log_type debug
314

415
# increase default size (which is 20) to avoid problems where messages can be
516
# silently dropped
617
max_inflight_messages 200
18+
19+
include_dir /etc/tedge/mosquitto-conf
20+
include_dir /etc/mosquitto/conf.d

images/debian-systemd/debian-systemd.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ COPY common/config/certificates/*.crt /usr/local/share/ca-certificates/
129129
RUN update-ca-certificates -f
130130

131131
# Custom mosquitto config
132-
COPY common/config/mosquitto.conf /etc/mosquitto/conf.d/
132+
COPY common/config/mosquitto.conf /etc/mosquitto/mosquitto.conf
133133
COPY common/config/mosquitto-conf/tedge-networkcontainer.conf /etc/tedge/mosquitto-conf/
134134

135135
# sudoers

0 commit comments

Comments
 (0)