Skip to content

Commit

Permalink
Updated nginx config file
Browse files Browse the repository at this point in the history
Signed-off-by: nyagamunene <[email protected]>
  • Loading branch information
nyagamunene committed May 15, 2024
1 parent e991b72 commit a67df6e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 85 deletions.
8 changes: 4 additions & 4 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -513,10 +513,10 @@ services:
MG_MQTT_ADAPTER_WS_ADDRESS: ${MG_MQTT_ADAPTER_WS_ADDRESS}
MG_MQTT_ADAPTER_WS_TARGET: ${MG_MQTT_ADAPTER_WS_TARGET}
MG_MQTT_ADAPTER_WS_PREFIX_PATH: ${MG_MQTT_ADAPTER_WS_PREFIX_PATH}
MG_MQTT_ADAPTER_WS_CERT_FILE: ${MG_MQTT_ADAPTER_WS_CERT_FILE:+/magistrala-mqtt-adapter.crt}
MG_MQTT_ADAPTER_WS_KEY_FILE: ${MG_MQTT_ADAPTER_WS_KEY_FILE:+/magistrala-mqtt-adapter.key}
MG_MQTT_ADAPTER_WS_SERVER_CA_FILE: ${MG_MQTT_ADAPTER_WS_SERVER_CA_FILE:+/magistrala-ca.crt}
MG_MQTT_ADAPTER_WS_CLIENT_CA_FILE: ${MG_MQTT_ADAPTER_WS_CLIENT_CA_FILE:+/magistrala-client-ca.key}
MG_MQTT_ADAPTER_WS_CERT_FILE: ${MG_MQTT_ADAPTER_WS_CERT_FILE:+/magistrala-mqtt-adapter-ws.crt}
MG_MQTT_ADAPTER_WS_KEY_FILE: ${MG_MQTT_ADAPTER_WS_KEY_FILE:+/magistrala-mqtt-adapter-ws.key}
MG_MQTT_ADAPTER_WS_SERVER_CA_FILE: ${MG_MQTT_ADAPTER_WS_SERVER_CA_FILE:+/magistrala-ca-ws.crt}
MG_MQTT_ADAPTER_WS_CLIENT_CA_FILE: ${MG_MQTT_ADAPTER_WS_CLIENT_CA_FILE:+/magistrala-client-ca-ws.key}
MG_MQTT_ADAPTER_WS_CERT_VERIFICATION_METHODS: ${MG_MQTT_ADAPTER_WS_CERT_VERIFICATION_METHODS:-}
MG_MQTT_ADAPTER_WS_OCSP_RESPONDER_URL: ${MG_MQTT_ADAPTER_WS_OCSP_RESPONDER_URL:-}
MG_MQTT_ADAPTER_INSTANCE: ${MG_MQTT_ADAPTER_INSTANCE}
Expand Down
7 changes: 4 additions & 3 deletions docker/nginx/nginx-key.conf
Original file line number Diff line number Diff line change
Expand Up @@ -194,15 +194,16 @@ stream {
include snippets/stream_access_log.conf;

# Include single-node or multiple-node (cluster) upstream
# Configure upstream with available nginx loading blancing strageies https://docs.nginx.com/nginx/admin-guide/load-balancer/tcp-udp-load-balancer/
include snippets/mqtt-upstream.conf;

server {
listen ${MG_NGINX_MQTT_PORT};
listen [::]:${MG_NGINX_MQTT_PORT};
listen ${MG_NGINX_MQTTS_PORT} ssl;
listen [::]:${MG_NGINX_MQTTS_PORT} ssl;
listen ${MG_NGINX_MQTTS_PORT};
listen [::]:${MG_NGINX_MQTTS_PORT};

include snippets/ssl.conf;
#include snippets/ssl.conf;

proxy_pass mqtt_cluster;
}
Expand Down
26 changes: 0 additions & 26 deletions docker/ssl/certs/thing.crt

This file was deleted.

52 changes: 0 additions & 52 deletions docker/ssl/certs/thing.key

This file was deleted.

0 comments on commit a67df6e

Please sign in to comment.