Giter Site home page Giter Site logo

Comments (4)

homlett avatar homlett commented on September 27, 2024

+1
I'm trying to configure a reverse proxy with nginx (https://mydomain.com/twister to https://localhost:28332), but no success : web pages are loaded, but there is a dialog with "Can't connect to twister daemon".
Any idea ?

from twister-html.

natir avatar natir commented on September 27, 2024

I am not sure you can use subdirectory.

Now I use the same configuration you can see in this issue (just comment http access isn't necessary now), and with subdomain it's run.

Can you post your nginx configuration please ?.

from twister-html.

homlett avatar homlett commented on September 27, 2024

I am not sure you can use subdirectory.

You mean with twister? Because with other applications it's working. But maybe you're right. I suspect the twister html/javascript client tries to request data from the root.

Anyway, here my (very simple) nginx configuration :

server {
        server_name     mydomain.com;
        listen          443 ssl;
        root            /usr/share/nginx/www;
        index           index.html index.htm index.php;

        # SSL configuration, auth configuration, etc.

        # This is working
        location /other_app/ {
                auth_basic          off;
                proxy_pass          https://127.0.0.1:46000/;
        }

        # Not working. I'm tried with differents 'proxy_set_header' argument, end slash or not, etc.
        location /twister/ {
                auth_basic          off;
                proxy_pass          https://127.0.0.1:28332/;
                #proxy_set_header       Host $host;
                #proxy_set_header       Host $host:$server_port;
                #proxy_set_header       X-Real-IP $remote_addr;
                #proxy_set_header       X-Forwarded-For $proxy_add_x_forwarded_for;
        }
}

Thanks a lot for your help!

from twister-html.

natir avatar natir commented on September 27, 2024

This bug is close and i think homlett problem isn't related to this, I close this issue

from twister-html.

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.