mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2025-12-24 02:39:18 -05:00
Compare commits
1 Commits
4e9ba75377
...
test-force
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b92fe7821e |
@@ -28,6 +28,7 @@ import { getAppVersion } from '@server/utils/appVersion';
|
|||||||
import createCustomProxyAgent from '@server/utils/customProxyAgent';
|
import createCustomProxyAgent from '@server/utils/customProxyAgent';
|
||||||
import restartFlag from '@server/utils/restartFlag';
|
import restartFlag from '@server/utils/restartFlag';
|
||||||
import { getClientIp } from '@supercharge/request-ip';
|
import { getClientIp } from '@supercharge/request-ip';
|
||||||
|
import axios from 'axios';
|
||||||
import { TypeormStore } from 'connect-typeorm/out';
|
import { TypeormStore } from 'connect-typeorm/out';
|
||||||
import cookieParser from 'cookie-parser';
|
import cookieParser from 'cookie-parser';
|
||||||
import type { NextFunction, Request, Response } from 'express';
|
import type { NextFunction, Request, Response } from 'express';
|
||||||
@@ -35,11 +36,16 @@ import express from 'express';
|
|||||||
import * as OpenApiValidator from 'express-openapi-validator';
|
import * as OpenApiValidator from 'express-openapi-validator';
|
||||||
import type { Store } from 'express-session';
|
import type { Store } from 'express-session';
|
||||||
import session from 'express-session';
|
import session from 'express-session';
|
||||||
|
import http from 'http';
|
||||||
|
import https from 'https';
|
||||||
import next from 'next';
|
import next from 'next';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import swaggerUi from 'swagger-ui-express';
|
import swaggerUi from 'swagger-ui-express';
|
||||||
import YAML from 'yamljs';
|
import YAML from 'yamljs';
|
||||||
|
|
||||||
|
axios.defaults.httpAgent = new http.Agent({ family: 4 });
|
||||||
|
axios.defaults.httpsAgent = new https.Agent({ family: 4 });
|
||||||
|
|
||||||
const API_SPEC_PATH = path.join(__dirname, '../jellyseerr-api.yml');
|
const API_SPEC_PATH = path.join(__dirname, '../jellyseerr-api.yml');
|
||||||
|
|
||||||
logger.info(`Starting Jellyseerr version ${getAppVersion()}`);
|
logger.info(`Starting Jellyseerr version ${getAppVersion()}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user