-
Notifications
You must be signed in to change notification settings - Fork 1
MeisskeyController
Tatsuya Koishi edited this page Feb 12, 2021
·
42 revisions
めいすきー等、Misskey 10.xからのフォーク(MongoDBを使用したもの)に対するコントローラー。
本家Misskey用はMisskeyControllerを参照。
- POST /api/notes/create
- POST /api/notes/favorites/create
- POST /api/drive/files/create
- POST /api/messaging/messages/create
以下のハンドラは実行できない。
- イベントが以下のもの 以外 であるハンドラ。
pre_toot
post_toot
pre_upload
post_upload
pre_thumbnail
pre_thumbnail
- FilterCommandHandler
Misskey公式の設定例を使用し、 同一ホストにモロヘイヤを置く想定で。
location = /api/notes/create {
proxy_set_header Host $host;
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;
proxy_http_version 1.1;
proxy_redirect off;
if ($http_x_mulukhiya != '') {
proxy_pass http://localhost:3000;
}
if ($http_x_mulukhiya = '') {
proxy_pass http://localhost:3008;
}
}
location = /api/drive/files/create {
proxy_set_header Host $host;
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;
proxy_http_version 1.1;
proxy_redirect off;
if ($http_x_mulukhiya != '') {
proxy_pass http://localhost:3000;
}
if ($http_x_mulukhiya = '') {
proxy_pass http://localhost:3008;
}
}
location = /api/notes/favorites/create {
proxy_set_header Host $host;
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;
proxy_http_version 1.1;
proxy_redirect off;
if ($http_x_mulukhiya != '') {
proxy_pass http://localhost:3000;
}
if ($http_x_mulukhiya = '') {
proxy_pass http://localhost:3008;
}
}
location = /api/messaging/messages/create {
proxy_set_header Host $host;
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;
proxy_http_version 1.1;
proxy_redirect off;
if ($http_x_mulukhiya != '') {
proxy_pass http://localhost:3000;
}
if ($http_x_mulukhiya = '') {
proxy_pass http://localhost:3008;
}
}
location ^~ /mulukhiya {
proxy_pass http://localhost:3008;
}
environment: production
controller: meisskey
meisskey:
url: https://meisskey.example.com/
agent:
test:
token: your_token
info:
token: your_token
mongo:
dsn: mongo://localhost:27017/misskey
user_config:
redis:
dsn: redis://localhost:6379/1
sidekiq:
redis:
dsn: redis://localhost:6379/2
auth:
password: your_password
alert:
slack:
hooks:
- https://hooks.slack.com/services/xxxxx
- https://discordapp.com/api/webhooks/xxxxx/slack
mail:
to: [email protected]
tagging:
default_tags:
- デフォルトタグ1
- デフォルトタグ2
dictionaries:
- url: https://mstdn.example.com/dictionaries/dic1
fields:
- field1
- field2
- url: https://mstdn.example.com/dictionaries/dic2
type: relative
- url: https://mstdn.example.com/dictionaries/dic3
type: mecab
crypt:
salt: your_salt
password: your_password