|
2 | 2 | # SPDX-License-Identifier: Apache-2.0 |
3 | 3 |
|
4 | 4 | # This is the Mainflux NGINX configuration for mututal authentication based on X.509 certifiactes. |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | 5 | server { |
10 | 6 | listen 80 default_server; |
11 | 7 | listen [::]:80 default_server; |
|
24 | 20 |
|
25 | 21 | server_name localhost; |
26 | 22 |
|
27 | | - |
28 | 23 | # Proxy pass to users service |
29 | 24 | location ~ ^/(users|tokens|password) { |
30 | 25 | include snippets/proxy-headers.conf; |
31 | 26 | proxy_pass http://users:${MF_USERS_HTTP_PORT}; |
32 | 27 | } |
33 | 28 |
|
34 | | - |
35 | | - |
36 | 29 | # Proxy pass to things service |
37 | 30 | location ~ ^/(things|channels|connect) { |
38 | 31 | include snippets/proxy-headers.conf; |
|
91 | 84 | include snippets/ws-upgrade.conf; |
92 | 85 | proxy_pass http://mqtt_ws_cluster; |
93 | 86 | } |
| 87 | + |
| 88 | + # Proxy pass to mainflux-influxdb-reader |
| 89 | + location /reader/ { |
| 90 | + include snippets/proxy-headers.conf; |
| 91 | + proxy_pass http://influxdb-reader:${MF_INFLUX_READER_PORT}/; |
| 92 | + } |
| 93 | + |
| 94 | + # Proxy pass to mainflux-bootstrap |
| 95 | + location /bootstrap/ { |
| 96 | + include snippets/proxy-headers.conf; |
| 97 | + proxy_pass http://bootstrap:${MF_BOOTSTRAP_PORT}/; |
| 98 | + } |
| 99 | + |
| 100 | + # Proxy pass to mainflux-opcua-adapter |
| 101 | + location /browse { |
| 102 | + include snippets/proxy-headers.conf; |
| 103 | + proxy_pass http://opcua-adapter:${MF_OPCUA_ADAPTER_HTTP_PORT}; |
| 104 | + } |
| 105 | + |
| 106 | + location ~ ^/(twins|states) { |
| 107 | + include snippets/proxy-headers.conf; |
| 108 | + proxy_pass http://twins:${MF_TWINS_HTTP_PORT}; |
| 109 | + } |
| 110 | + |
| 111 | + location / { |
| 112 | + include snippets/proxy-headers.conf; |
| 113 | + proxy_pass http://ui:${MF_UI_PORT}; |
| 114 | + } |
94 | 115 | } |
95 | | -} |
96 | 116 |
|
0 commit comments