twip / flask_twip

A twitter API proxy extension for Flask microframework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

当域名是 https 的时候,整个授权的过程就会断开

DrayChou opened this issue · comments

commented

昨天搭建了这个,但是发现当域名是 https 的时候,似乎并不能自动识别这个地址。授权归来的时候会跳到 http 的地址。

请问有没有参数能设定主页地址?

Where do you install flask_twip?

For all supported environment, I've taken care of https very well.

commented

在我的 vps 上。uwsgi+nginx 跑起来的,安装记录在 http://zh-w.info/2013/06/16/uwsginginx-run-flask-twip/

If you want to re-distribute the source code (in this case, you already did), please rename the package and don't call it "Flask-Twip". You are actually forking this project, which is not supported by me or any developer of this project, and keep it under the name "Flask-Twip" may confuse all the readers of your blog post. NO, SERIOUSLY.

As for your problem, that's caused by your setup and I don't think there's anything to do with Flask-Twip itself. Please refer to uwsgi document and setup the proper environment. http://uwsgi-docs.readthedocs.org/en/latest/Vars.html#uwsgi-scheme

commented

是封装了你的库。
另外,这个不是我写的,我修改下说明。
我在这里的角色只是个搬用工和用户,如果你希望我删除或者再修改的话,请告诉我。

另,因为库是用的你提交的 flask_twip ,所以有关域名判断的部分,我不清楚是怎么判断的。
搬过来的代码:https://github.com/DrayChou/Nginx-uWSGI-Flask-twip