Giter Club home page Giter Club logo

Comments (8)

mingfang avatar mingfang commented on August 15, 2024

The problem goes away when I remove from routes.py lines 203 to 211.
Also because I'm using a self signed cert, it only works with Chrome.

from butterfly.

oldgregg-zz avatar oldgregg-zz commented on August 15, 2024

I'd highly recommend you leave lines 203 through 211 in, as they prevent a number of security issues. Could you perhaps include your use-case, so we could:

A) come up with a solution given the existing code
B) make code changes to better support this setup if deemed necessary?

from butterfly.

mingfang avatar mingfang commented on August 15, 2024

My use case is this. I want to front butterfly http using a https reverse proxy. I have tried nginx and haproxy.

from butterfly.

paradoxxxzero avatar paradoxxxzero commented on August 15, 2024

I'll push a fix monday for this, meanwhile you can change the test in these lines to match the host without the protocol.

from butterfly.

boccato avatar boccato commented on August 15, 2024

@mingfang While the change is not up, you can put this on your nginx config's location block:
proxy_set_header Origin http://$host;
That way, the check at line 203 will work. Yeah, its a hack and I don't recommend (though I don't really know why... :))

from butterfly.

paradoxxxzero avatar paradoxxxzero commented on August 15, 2024

This should be fixed in git version. Could you please try it ?

from butterfly.

mingfang avatar mingfang commented on August 15, 2024

Hmm, Iā€™m now getting a different error on the server logs

2014-05-05_11:14:05.83074 [E 140505 11:14:05 websocket:325] Uncaught exception in /ws/
2014-05-05_11:14:05.83077 Traceback (most recent call last):
2014-05-05_11:14:05.83077 File "/usr/local/lib/python2.7/dist-packages/tornado-3.2-py2.7-linux-x86_64.egg/tornado/websocket.py", line 322, in wrapper
2014-05-05_11:14:05.83078 return callback(_args, *_kwargs)
2014-05-05_11:14:05.83079 File "/usr/local/lib/python2.7/dist-packages/butterfly-1.5.0-py2.7.egg/butterfly/routes.py", line 295, in on_message
2014-05-05_11:14:05.83079 fcntl.ioctl(self.fd, termios.TIOCSWINSZ, s)
2014-05-05_11:14:05.83079 IOError: [Errno 9] Bad file descriptor
2014-05-05_11:14:10.54359 [E 140505 11:14:10 websocket:325] Uncaught exception in /ws/
2014-05-05_11:14:10.54361 Traceback (most recent call last):
2014-05-05_11:14:10.54361 File "/usr/local/lib/python2.7/dist-packages/tornado-3.2-py2.7-linux-x86_64.egg/tornado/websocket.py", line 322, in wrapper
2014-05-05_11:14:10.54362 return callback(_args, *_kwargs)
2014-05-05_11:14:10.54363 File "/usr/local/lib/python2.7/dist-packages/butterfly-1.5.0-py2.7.egg/butterfly/routes.py", line 295, in on_message
2014-05-05_11:14:10.54363 fcntl.ioctl(self.fd, termios.TIOCSWINSZ, s)
2014-05-05_11:14:10.54364 IOError: [Errno 9] Bad file descriptor

On May 5, 2014, at 6:06 AM, Mounier Florian [email protected] wrote:

This should be fixed in git version. Could you please try it ?

ā€”
Reply to this email directly or view it on GitHub.

from butterfly.

mingfang avatar mingfang commented on August 15, 2024

Any update on this?
I'm still unable to front butterfly using nginx ssl.
Non ssl work fine.

from butterfly.

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.