to get a basic mqtt

This commit is contained in:
Eduardo Luis Hofmann
2023-08-09 23:16:26 +03:00
parent b9a283d58f
commit b9a5b66c61
2 changed files with 56 additions and 2 deletions

View File

@@ -21,14 +21,19 @@ log_facility 5
## Nginx router
Install nginx
In case mosquitto is not facing internet directly, a proxy server may needed. Caddy do not work, only nginx.
To install nginx
```
sudo dnf install nginx
sudo dnf install nginx nginx-mod-stream
```
conf file [here](nginx.conf)
```
check firewal and selinux in case of problem
sudo firewall-cmd --permanent --zone=public --add-port=8883/tcp
sudo firewall-cmd --reload
```