Skip to content

Commit

Permalink
Fix mqtt in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
michalszc committed Dec 3, 2023
1 parent 75ef62a commit 5965c0f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion backend/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
- MONGODB_URI=mongodb://${MONGODB_USER}:${MONGODB_PASSWORD}@mongodb:27017
- SECRET_ACCESS_KEY=${SECRET_ACCESS_KEY}
- SECRET_REFRESH_KEY=${SECRET_REFRESH_KEY}
- MQTT_HOST=${MQTT_HOST}
- MQTT_HOST=mqtt
- MQTT_PORT=${MQTT_PORT}
- MQTT_USERNAME=${MQTT_USERNAME}
- MQTT_PASSWORD=${MQTT_PASSWORD}
Expand Down
13 changes: 7 additions & 6 deletions backend/mosquitto/config/mosquitto.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ listener 8883
max_connections 2
protocol mqtt

tls_version tlsv1.2
cafile /mosquitto/config/ca.crt
certfile /mosquitto/config/server.crt
keyfile /mosquitto/config/server.key
require_certificate true
use_identity_as_username true
# Comment out the following lines to disable TLS in docker-prod mode
# tls_version tlsv1.2
# cafile /mosquitto/config/ca.crt
# certfile /mosquitto/config/server.crt
# keyfile /mosquitto/config/server.key
# require_certificate true
# use_identity_as_username true

0 comments on commit 5965c0f

Please sign in to comment.