Login Strategy for Chinese Discourse / Discourse 登录插件列表


(Erick Guan) #1

This is a Chinese service collection list for Discourse login.

这是一个 Discourse 登录服务的列表。

Here is the strategy list:


(bubill) #2

哇!!! 给力,太给力了!!!!!!哈哈哈


(Erick Guan) #3

Rather than posting “+1” or “Agreed”, use the Like button. Rather than taking an existing topic in a radically different direction, use Reply as a New Topic.

Friendly remind. Though it’s Discourse Meta, you’d better follow the community guidelines.

And it would be better post something in English when it’s not something only related to Chinese, thus everyone in Meta could understand what happened. It’s kind to everyone, right?


(Sam Saffron) #4

Also our Chinese search word splitter only kicks in if the locale is Chinese, so it may be hard to find this topic


(Erick Guan) #5

Actually it just works if you type more characters. I am trying to build some localization works and hosting. I think it can help us solve some problem.


(Sam Saffron) #6

Are you sure about this? Have you seen this code discourse/search.rb at master · discourse/discourse · GitHub


(Erick Guan) #7

I know that. It seems postgres accidentally spilt some Chinese words. e.g. 登录插件 can reach this topic, but 插件列表 can’t.


(Chan Coffin) #8

Hello , 我确定我设置了回调 Uri (根域名、二级域名都试过了),但是登录时依然提示错误。

微博:(error:redirect_uri_mismatch)
QQ: redirect uri is illegal(100010)

URL 里的 redirect_uri 是这样的:


(Erick Guan) #9

给我具体一点的信息吧。你的论坛的地址是什么?你填的回调又是什么。不方便的话你可以给我私信。


(Chan Coffin) #10

论坛地址是 geek.acmclub.cn

填的回调地址是 geek.acmclub.cn / acmclub.cn 这两个都试过


(Erick Guan) #11

先试试微博看看:

http://open.weibo.com/apps/<你的id>/info/advanced 这里应该可以设置回调地址。

试试 http://geek.acmclub.cn/auth/weibo/callback,我不知道要不要 http。


(Chan Coffin) #12

Yeah,我换了 http://geek.acmclub.cn/auth/weibo/callback 也还是不行


(Erick Guan) #13

http://discourse/auth/weibo/callback 你的回调地址为何是这个…


(Chan Coffin) #14

我找到为何是 //discourse/ 的原因了。
我的服务器上还有别的应用,所以我用别的端口对 docker 做了转发:

proxy_pass http://discourse;

不过问题还是没解决 = =

Update:解决了。

之前 nginx 配置用的官方给的,有一段是:

  location / {
    try_files $uri $uri/ @discourse;
  }

  location @discourse {
    proxy_buffering off;
    proxy_pass http://discourse;
  }

换成了:

location / {
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header Host $http_host; 
                proxy_redirect off;
                proxy_pass http://my_server_ip:port;
        }

总之,非常感谢作者。

另外,我觉得应该像别的一样,加一个开关 . 不然没配置好的情况下,想暂时去掉也不方便。


(Erick Guan) #15

你指的开关是指什么?要做 Nginx 端口转发是你不得不自己配置的。


(Chan Coffin) #16

就是像 Discourse 已经有的 Yahoo Google 帐号那样,可以选择是否启用。


(Erick Guan) #17
没有开启选项是因为这是一个插件。插件可以安装自然也可以禁用卸载,只是没有这样的明显的界面,应该是1.1的目标。