Skip to content

reverse proxy to zwavejs2mqtt container #1396

Answered by robertsLando
KLForsythe asked this question in Q&A
Discussion options

You must be logged in to vote

Try to se /zwavejs2mqtt/ in base settings

And use this:

map $http_upgrade $connection_upgrade {
    default upgrade;
    '' close;
}

server {
    listen 80 default_server;
    listen [::]:80 default_server;

    location /zwavejs2mqtt {
        rewrite '^/zwavejs2mqtt(/.*)$' $1 break;
		proxy_pass http://localhost:8091;
        proxy_set_header X-External-Path /zwavejs2mqtt;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;
    }
}

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@robertsLando
Comment options

@KLForsythe
Comment options

@robertsLando
Comment options

@KLForsythe
Comment options

@ginjo
Comment options

Answer selected by KLForsythe
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants