GithubHelp home page GithubHelp logo

Comments (4)

jc21 avatar jc21 commented on May 18, 2024 1

For future reference, I added another setting for Proxy Hosts in version 2.0.3 you can use for any hosts that need websocket upgrades. Just turn on "Allow Websocket HTTP Upgrades" and hopefully everything works without the need for advanced config.

from nginx-proxy-manager.

jc21 avatar jc21 commented on May 18, 2024

Wow that's a lot of unnecessary crap they want you to do.

You should only need this location block, without all the ssl, redirections and basic authentication that the NPM will already handle. Even then, the only reason you need this is because of the websocket upgrade that is mixed in with all of it.

location ~ .*/ws.* {
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_http_version 1.1;
    proxy_pass http://$server:$port;
    proxy_connect_timeout 7d;
    proxy_send_timeout 7d;
    proxy_read_timeout 7d;
}

Give that a go. I'm not prepared to install butterfly to test it out though :)

from nginx-proxy-manager.

zaywalker avatar zaywalker commented on May 18, 2024

@jc21 Super thanks for the reply! I've tried the location block, unfortunatly, I got black screen like before. Even restart NPM docker.
But, I've learn some clue about
~ .*/ws.*
I'll try do this another way!
Thanks eyery time!

from nginx-proxy-manager.

zaywalker avatar zaywalker commented on May 18, 2024

working great!!! thanks!

from nginx-proxy-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.