Comments (8)
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.
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.
My use case is this. I want to front butterfly http using a https reverse proxy. I have tried nginx and haproxy.
from butterfly.
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.
@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.
This should be fixed in git version. Could you please try it ?
from butterfly.
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.
Any update on this?
I'm still unable to front butterfly using nginx ssl.
Non ssl work fine.
from butterfly.
Related Issues (20)
- Recent uri-root-path changes broken in commit that updated package version.
- install package
- use specefic directory
- Add route with command execution
- Audio redirection to browser
- A 'b url' command or similar to open a URL in the browser the terminal is accessed through. HOT 2
- Font error during theme change
- Using as a library
- Themes need to change to work when using uri_root_path option.
- Paste do not work in Firefox on Mac
- Can't access server from other network locations HOT 1
- sslforfree or letsencrypt
- HTTPS - untrusted? HOT 1
- Session queries need to change to work when using uri_root_path option.
- HTML being cleaned out of Tags
- Select and automatic copy of selected text
- how can i get query string from Butterfly terminal
- While running under SCREEN html output stops working
- HTTP works, but running over HTTPS on iOS is giving a blank page even with valid self-signing certificates HOT 1
- Trying to get in touch regarding a security issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from butterfly.