|
|
@@ -24,7 +24,7 @@ const options: FastifyEnvOptions = {
|
|
|
export const createApp = async () => {
|
|
|
const app = fastify({
|
|
|
disableRequestLogging: true,
|
|
|
- trustProxy: true, // 信任代理,用于获取真实客户端 IP
|
|
|
+ trustProxy: true,
|
|
|
logger: {
|
|
|
level: process.env.NODE_ENV === 'development' ? 'debug' : 'info',
|
|
|
transport: {
|