jina-ai: fix proxy ip

This commit is contained in:
Yanlong Wang 2025-02-18 20:31:40 +08:00
parent af10681105
commit b4cf88bb4a
No known key found for this signature in database
GPG Key ID: C0A623C0BADF9F37

View File

@ -6,6 +6,7 @@ import { Server } from 'http';
const app = require('../..').default;
const rootApp = express();
rootApp.set('trust proxy', true);
rootApp.use(jinaAiMiddleware, app);