x1ongzhu 1 年之前
父節點
當前提交
33c3d221a7
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app.mjs

+ 1 - 0
app.mjs

@@ -12,6 +12,7 @@ const __filename = fileURLToPath(import.meta.url);
 const __dirname = dirname(__filename);
 
 const fastify = Fastify({
+    trustProxy: true,
     logger: {
         level: "error",
     },