From 70433469a16f6279390c8c0bdb3b9048ccfb3841 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 12 Apr 2018 06:02:34 +0900 Subject: [PATCH] Clean up --- package.json | 1 - src/config/types.ts | 4 ---- src/server/index.ts | 11 ----------- 3 files changed, 16 deletions(-) diff --git a/package.json b/package.json index 048ef651d..d5233d54a 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 f802e70d1..b181f2c8c 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 9358cce2a..962d3b5f4 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