Provide Redis version
This commit is contained in:
@@ -21,6 +21,7 @@ import parseAcct from '../../misc/acct/parse';
|
||||
import getNoteSummary from '../../misc/get-note-summary';
|
||||
import { ensure } from '../../prelude/ensure';
|
||||
import { getConnection } from 'typeorm';
|
||||
import redis from '../../db/redis';
|
||||
|
||||
const client = `${__dirname}/../../client/`;
|
||||
|
||||
@@ -252,6 +253,7 @@ router.get('/info', async ctx => {
|
||||
os: os.platform(),
|
||||
node: process.version,
|
||||
psql: await getConnection().query('SHOW server_version').then(x => x[0].server_version),
|
||||
redis: redis.server_info.redis_version,
|
||||
cpu: {
|
||||
model: os.cpus()[0].model,
|
||||
cores: os.cpus().length
|
||||
|
Reference in New Issue
Block a user