Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
Nguyen-Duc-Khai committed Nov 17, 2023
1 parent 16737ff commit 52d356b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ upstream portainer {
server portainer_air_checker:9000;
}

upstream emqx {
server emqx_air_checker:18083;
}

server {
listen 80;
listen [::]:80;
Expand Down Expand Up @@ -53,6 +57,17 @@ server {
}
}

server {
listen 1883;
listen [::]:1883;

server_name airchecker.online;

location / {
proxy_pass http://emqx_air_checker:1883;
}
}

server {
listen 80;
listen [::]:80;
Expand Down Expand Up @@ -96,4 +111,8 @@ server {
proxy_http_version 1.1;
proxy_pass http://portainer/api/websocket/;
}

location /mqtt-broker/ {
proxy_pass http://emqx/;
}
}

0 comments on commit 52d356b

Please sign in to comment.