Giter Site home page Giter Site logo

socket error on nginx proxy about mirotalk HOT 3 CLOSED

A1Gard avatar A1Gard commented on June 26, 2024
socket error on nginx proxy

from mirotalk.

Comments (3)

miroslavpejic85 avatar miroslavpejic85 commented on June 26, 2024 1

Hello @A1Gard,

The configuration you provided appears to be mostly correct. However, there is a small issue with the line proxy_hide_header "Nothing";. The proxy_hide_header directive is used to remove specific headers from the response sent by the upstream server. However, in this case, you are specifying a header name of "Nothing," which is not a valid header.

If you intend to hide a specific header, you should replace "Nothing" with the actual header you want to hide. For example, if you wanted to hide the "X-Powered-By" header, you would use:

proxy_hide_header X-Powered-By;

If you don't need to hide any specific headers, you can simply remove the proxy_hide_header line from your configuration.

Other than that, the rest of the configuration looks fine. It sets up a reverse proxy to redirect requests received on the root location (/) to https://localhost:2222. It also sets the necessary headers for handling WebSocket connections.

I'm going to close this issue, please, for help and support, join with us on official forum
Here you can find many answers and ask questions, interact with the community ;)

Thank you!

from mirotalk.

A1Gard avatar A1Gard commented on June 26, 2024

I found the problem, this problem wasted my time about 8 hours, plz update the doc :

add proxy_hide_header to config:

location / {
        proxy_pass https://localhost:2222;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_hide_header "Nothing"; 
    }

Pardon me about my idea about bug

from mirotalk.

A1Gard avatar A1Gard commented on June 26, 2024

Thanks bro @miroslavpejic85
I joined bro, I have to add this line for this problem:

https://forum.hestiacp.com/t/latest-update-broke-my-websockets/3600

from mirotalk.

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.