Skip to content

Commit 599b918

Browse files
committed
fix space, identation
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
1 parent 2918df2 commit 599b918

2 files changed

Lines changed: 29 additions & 11 deletions

File tree

docker/nginx/nginx-key.conf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@
2020
add_header Access-Control-Allow-Headers '*';
2121

2222
server_name localhost;
23-
2423

25-
# Proxy pass to users service
24+
# Proxy pass to users service
2625
location ~ ^/(users|tokens|password) {
2726
include snippets/proxy-headers.conf;
2827
proxy_pass http://users:${MF_USERS_HTTP_PORT};
@@ -111,6 +110,5 @@
111110
include snippets/proxy-headers.conf;
112111
proxy_pass http://ui:${MF_UI_PORT};
113112
}
114-
115113
}
116114

docker/nginx/nginx-x509.conf

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
# This is the Mainflux NGINX configuration for mututal authentication based on X.509 certifiactes.
5-
6-
7-
8-
95
server {
106
listen 80 default_server;
117
listen [::]:80 default_server;
@@ -24,15 +20,12 @@
2420

2521
server_name localhost;
2622

27-
2823
# Proxy pass to users service
2924
location ~ ^/(users|tokens|password) {
3025
include snippets/proxy-headers.conf;
3126
proxy_pass http://users:${MF_USERS_HTTP_PORT};
3227
}
3328

34-
35-
3629
# Proxy pass to things service
3730
location ~ ^/(things|channels|connect) {
3831
include snippets/proxy-headers.conf;
@@ -91,6 +84,33 @@
9184
include snippets/ws-upgrade.conf;
9285
proxy_pass http://mqtt_ws_cluster;
9386
}
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+
}
94115
}
95-
}
96116

0 commit comments

Comments
 (0)