MQTTX and NGINX
#1816
Replies: 1 comment
-
# Build for Docker environment
yarn install
yarn run build:docker
# Build Docker image
docker build -t mqttx-web .
# Run container
docker run -p 5566:80 mqttx-web
location /mqttx/ {
proxy_pass http://localhost:5566/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# WebSocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}Refrenece: https://mqttx.app/docs/web/development |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
has anyone recommendation for running MQTTX as a docker image behind NGINX?
I'm having specifically issues with loading all the image resources.
The way I got around so far was by configuring the entry in the nginx.conf this way:
location /mqttx/ {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
But it is still not loading all of the images.
Appreciate any help!
Beta Was this translation helpful? Give feedback.
All reactions