diff --git a/docker/nginx/nginx-key.conf b/docker/nginx/nginx-key.conf index 73c22296..04a23e8a 100644 --- a/docker/nginx/nginx-key.conf +++ b/docker/nginx/nginx-key.conf @@ -20,9 +20,8 @@ add_header Access-Control-Allow-Headers '*'; server_name localhost; - - # Proxy pass to users service + # Proxy pass to users service location ~ ^/(users|tokens|password) { include snippets/proxy-headers.conf; proxy_pass http://users:${MF_USERS_HTTP_PORT}; @@ -111,6 +110,5 @@ include snippets/proxy-headers.conf; proxy_pass http://ui:${MF_UI_PORT}; } - } diff --git a/docker/nginx/nginx-x509.conf b/docker/nginx/nginx-x509.conf index 66f1455c..e08f837e 100644 --- a/docker/nginx/nginx-x509.conf +++ b/docker/nginx/nginx-x509.conf @@ -2,10 +2,6 @@ # SPDX-License-Identifier: Apache-2.0 # This is the Mainflux NGINX configuration for mututal authentication based on X.509 certifiactes. - - - - server { listen 80 default_server; listen [::]:80 default_server; @@ -24,15 +20,12 @@ server_name localhost; - # Proxy pass to users service location ~ ^/(users|tokens|password) { include snippets/proxy-headers.conf; proxy_pass http://users:${MF_USERS_HTTP_PORT}; } - - # Proxy pass to things service location ~ ^/(things|channels|connect) { include snippets/proxy-headers.conf; @@ -91,6 +84,33 @@ include snippets/ws-upgrade.conf; proxy_pass http://mqtt_ws_cluster; } + + # Proxy pass to mainflux-influxdb-reader + location /reader/ { + include snippets/proxy-headers.conf; + proxy_pass http://influxdb-reader:${MF_INFLUX_READER_PORT}/; + } + + # Proxy pass to mainflux-bootstrap + location /bootstrap/ { + include snippets/proxy-headers.conf; + proxy_pass http://bootstrap:${MF_BOOTSTRAP_PORT}/; + } + + # Proxy pass to mainflux-opcua-adapter + location /browse { + include snippets/proxy-headers.conf; + proxy_pass http://opcua-adapter:${MF_OPCUA_ADAPTER_HTTP_PORT}; + } + + location ~ ^/(twins|states) { + include snippets/proxy-headers.conf; + proxy_pass http://twins:${MF_TWINS_HTTP_PORT}; + } + + location / { + include snippets/proxy-headers.conf; + proxy_pass http://ui:${MF_UI_PORT}; + } } -}