Skip to content

Commit

Permalink
ActivityPub用エンドポイントのパスを/ap/~に統一 (#323)
Browse files Browse the repository at this point in the history
## 変更内容
- ActivityPub用のエンドポイントのパスを`/ap/*`に変更しました。

@coderabbitai: ignore
  • Loading branch information
takecchi committed Mar 2, 2024
1 parent 8d90ad2 commit cb4868e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
22 changes: 2 additions & 20 deletions proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,9 @@ app.prepare().then(() => {
}),
);

// users/*へのリクエストをプロキシする
// ap/*へのリクエストをプロキシする
server.use(
'/users/*',
createProxyMiddleware({
target: 'http://localhost:8080',
changeOrigin: true,
}),
);

// nodeinfo/*へのリクエストをプロキシする
server.use(
'/nodeinfo/*',
createProxyMiddleware({
target: 'http://localhost:8080',
changeOrigin: true,
}),
);

// inboxへのリクエストをプロキシする
server.use(
'/inbox',
'/ap/*',
createProxyMiddleware({
target: 'http://localhost:8080',
changeOrigin: true,
Expand Down
4 changes: 1 addition & 3 deletions sst.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ export default {
distribution: {
additionalBehaviors: {
'.well-known/*': apiBehavior,
'users/*': apiBehavior,
'nodeinfo/*': apiBehavior,
inbox: apiBehavior,
'ap/*': apiBehavior,
},
},
},
Expand Down

0 comments on commit cb4868e

Please sign in to comment.