diff --git a/package.json b/package.json index 048ef651de..d5233d54a6 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,6 @@ "@types/webpack-stream": "3.2.10", "@types/websocket": "0.0.38", "@types/ws": "4.0.2", - "accesses": "2.5.0", "animejs": "2.2.0", "autosize": "4.0.1", "autwh": "0.1.0", diff --git a/src/config/types.ts b/src/config/types.ts index f802e70d1e..b181f2c8c1 100644 --- a/src/config/types.ts +++ b/src/config/types.ts @@ -41,10 +41,6 @@ export type Source = { secret_key: string; }; accesslog?: string; - accesses?: { - enable: boolean; - port: number; - }; twitter?: { consumer_key: string; consumer_secret: string; diff --git a/src/server/index.ts b/src/server/index.ts index 9358cce2ac..962d3b5f4f 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -7,7 +7,6 @@ import * as http from 'http'; import * as https from 'https'; import * as express from 'express'; import * as morgan from 'morgan'; -import Accesses from 'accesses'; import activityPub from './activitypub'; import webFinger from './webfinger'; @@ -21,16 +20,6 @@ const app = express(); app.disable('x-powered-by'); app.set('trust proxy', 'loopback'); -// Log -if (config.accesses && config.accesses.enable) { - const accesses = new Accesses({ - appName: 'Misskey', - port: config.accesses.port - }); - - app.use(accesses.express); -} - app.use(morgan(process.env.NODE_ENV == 'production' ? 'combined' : 'dev', { // create a write stream (in append mode) stream: config.accesslog ? fs.createWriteStream(config.accesslog) : null