mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(ip logging): add env var for proxy to fix ip logging on failed logins (#756)
This commit is contained in:
@@ -61,6 +61,9 @@ app
|
||||
startJobs();
|
||||
|
||||
const server = express();
|
||||
if (process.env.PROXY === 'yes') {
|
||||
server.enable('trust proxy');
|
||||
}
|
||||
server.use(cookieParser());
|
||||
server.use(bodyParser.json());
|
||||
server.use(bodyParser.urlencoded({ extended: true }));
|
||||
|
Reference in New Issue
Block a user