adjust configuration template
This commit is contained in:
parent
1360195f67
commit
8d663eecf1
@ -21,7 +21,8 @@ RUN \
|
||||
COPY opt/ /opt
|
||||
COPY etc/ /opt/etc
|
||||
COPY supervisor-mosquitto.conf /etc/supervisor/conf.d/
|
||||
COPY crontab /etc/crontab
|
||||
COPY crontab /etc/
|
||||
COPY mosquitto.conf-sample /opt/etc/mosquitto/
|
||||
|
||||
VOLUME /opt/etc
|
||||
VOLUME /opt/data
|
||||
@ -35,5 +36,5 @@ EXPOSE 9001/tcp
|
||||
|
||||
WORKDIR /opt
|
||||
|
||||
CMD [ "/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf" ]
|
||||
CMD "/usr/bin/openssl dhparam -out /opt/etc/mosquitto/dh.pem 1024 && /usr/bin/supervisord -c /etc/supervisor/supervisord.conf"
|
||||
|
||||
|
@ -8,6 +8,15 @@ protocol mqtt
|
||||
#allow_anonymous true
|
||||
allow_anonymous false
|
||||
|
||||
listener 8883
|
||||
protocol mqtt
|
||||
#allow_anonymous true
|
||||
allow_anonymous false
|
||||
certfile /etc/letsencrypt/live/DOMAIN/fullchain.pem
|
||||
keyfile /etc/letsencrypt/live/DOMAIN/privkey.pem
|
||||
dhparamfile /opt/etc/mosquitto/dh.pem
|
||||
tls_version tlsv1.2
|
||||
|
||||
auth_plugin /opt/lib/go-auth.so
|
||||
auth_opt_log_dest stdout
|
||||
auth_opt_log_level debug
|
||||
|
Loading…
x
Reference in New Issue
Block a user