Closed y4my4my4m closed 1 year ago
I tried setting app.proxy = true
in other files, but it didnt seem to work.
Anyway it's set in the server/index.ts
参考書:https://github.com/koajs/koa/issues/974
I fixed the github and discord one.
I had to modify the /etc/nginx/mysite.conf
and uncomment these:
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
Twitter still not working, somehow.
https://github.com/syuilo/autwh のバグかな? 🤔
// index_test.js
const autwh = require('autwh');
const _a = autwh({
consumerKey: 'XXX', //実際のキー
consumerSecret: 'XXX',
callbackUrl: 'https://mysite.com/api/tw/cb'
});
console.log(_a);
node index_test.js
にすると TypeError: autwh is not a function
エラーがでます。
なんかおかしいけど、だめなworkaroundで解決できた。
yarn install oauth
curl -O https://raw.githubusercontent.com/syuilo/autwh/master/src/index.ts > autwh.ts
// const OAuth = require('oauth').OAuth; // replace this
import { OAuth } from 'oauth'; // with this
//twitter.js
import autwh from './autwh'
yarn build
で想定通りに動いています
But of course that's a terrible way to go about it.
@syuilo 直してたりする?
特にはまだ対応してない
外部連携は廃止されたのでcloseして良さそうです
💡 Summary
When trying to login via integration (all 3), an internal server error occurs.
🥰 Expected Behavior
Should login using the integration service
🤬 Actual Behavior
Twitter
Github
Discord
📝 Steps to Reproduce
📌 Environment
Misskey: 12.110.1 Node.js: v16.15.0 PostgreSQL: 13.4 Redis: 6.2.5 Vue: 3.2.31
Running on EC2 AWS, using pm2 to run Node process.
他
自分の環境の問題かもしれないですが、原因よく分からない。ホームページが正しくHTTPS認証されているけど、、