Skip to content

Commit

Permalink
fix(reverse-proxy): https removed
Browse files Browse the repository at this point in the history
  • Loading branch information
soumyadip007 authored Dec 9, 2024
1 parent 701ad84 commit af48105
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/reverse-proxy-service/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,12 @@ import { COOKIE_SECRET } from './setup/env';
import oidcAuth from './middleware/oidcAuth';
import { updateApplicationCache } from './utils/applicationCache';
import http from 'http';
import https from 'https';

declare module 'http' { interface Agent { maxHeaderSize?: number; } }
declare module 'https' { interface Agent { maxHeaderSize?: number; } }

const MAX_HEADER_SIZE = 16 * 1024 * 1024; // 16MB

( http.globalAgent as http.Agent ).maxHeaderSize = MAX_HEADER_SIZE;
( https.globalAgent as https.Agent ).maxHeaderSize = MAX_HEADER_SIZE;

const getServer = async () => {
const server = express();
Expand Down

0 comments on commit af48105

Please sign in to comment.