mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
系统设置增加系统运行日志
This commit is contained in:
1 parent
b002cbef3a
commit
4f7649f157
33 files changed
+864
-112
No files matched your search
@@ -15,6 +15,7 @@ import { EnvModel } from '../data/env';
|
||||
import { errors } from 'celebrate';
|
||||
import { createProxyMiddleware } from 'http-proxy-middleware';
|
||||
import { serveEnv } from '../config/serverEnv';
|
||||
import Logger from './logger';
|
||||
|
||||
export default ({ app }: { app: Application }) => {
|
||||
app.enable('trust proxy');
|
||||
@@ -28,6 +29,7 @@ export default ({ app }: { app: Application }) => {
|
||||
target: `http://localhost:${config.publicPort}/api`,
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '/api/public': '' },
|
||||
logProvider: () => Logger
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user