typcn
typcn
需要先开一个 application a,推流到 a, 然后 b 使用 pull 的方式回源 A。 两个 app 均开启了 GOP Cache。
``` application live{ live on; gop_cache on; gop_cache_count 1; deny publish all; pull rtmp://127.0.0.1:1935/push; } application push{ live on; gop_cache on; gop_cache_count 1; allow publish 172.22.10.0/24; deny publish all; hls...
These ids are generated by Xcode , I think this is no effect . I will notice the code in the future.
crow::json::dump(ctx)
暂时没有制作独立的搜索功能,你可以换上自己的 Key 或者使用其他一些软件搭建搜索引擎 On Sat, Dec 12, 2015 at 01:34 tsuibin [email protected] wrote: > 搜索功能会调用 > sswiftypecdncom/install/v2/stjs > 然后会将LeanClub站点的内容显示出来 > > — > Reply to this email directly or view...
看看存储session的 redis 是否配置正确 On Sat, Dec 12, 2015 at 01:28 tsuibin [email protected] wrote: > 在github申请了oauth id 和 Secret > 填写到configh > 重新编译,测试 > > 用github登录报错 > > Authorization callback URL:...
redis不需要导入,config 里面 redis IP和 redis master ip填一个就可以了 On Sat, Dec 12, 2015 at 01:40 tsuibin [email protected] wrote: > 检查哪一个表? > > — > Reply to this email directly or view...
em.. 我这里默认的 6379 没有问题啊。 Auth failed 只在这里出现了 https://github.com/typcn/LeanClub/blob/3a5c1fa007b2c909d2b751086f07783f66e8c753/src/api.cpp#L103 也就是说,POST https://github.com/login/oauth/access_token application/x-www-form-urlencoded "client_id=" + GITHUB_OAUTH_ID +"&client_secret=" + GITHUB_OAUTH_SECRET + "&code=" + code 只有在这里失败了才会触发,你可以下个断点或者print出来github的响应内容调试一下
em... code 是 -1 的话,应该是 callback 的问题?登录 callback 之后会输出一个静态页面,然后再用一个 ajax 请求 post 你看看浏览器发上去的请求对不对 On Mon, Dec 14, 2015 at 20:39 tsuibin [email protected] wrote: > params.code 打印结果 -1 > > —...
对,callback 之后应该会有一个 URL 参数叫 "code" ,后面对应了一串字符,会在 ajax 请求里面传上去