Server/project
vniehues 3e68297016 [ADD] functionality to read "x-forwarded-for" and "x-real-ip" headers when handling a request (!329)
I'm currently hosting the Project Fika Docker on a dedicated Server to have the Server up 24/7 without the need to let my PC run.
When hosting this as a docker container behind traefik (reverse proxy), the logger currently logs the internal IP of the traefik container.
This change makes it so that the headers that traefik/nginx can set are actually read and used. If these headers are not present, we fall back to the original method of using the `socket.remoteAdress`.
Since this is for logging only, the security implications are minimal.

Co-authored-by: Vincent Niehues <vincent.niehues@zeitag.ch>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/329
Co-authored-by: vniehues <vniehues@noreply.dev.sp-tarkov.com>
Co-committed-by: vniehues <vniehues@noreply.dev.sp-tarkov.com>
2024-05-12 13:56:03 +00:00
..
.vscode Code Styling Changes 2024-05-06 02:36:35 -04:00
assets Adjusted PMC mod chance values 2024-05-12 10:03:22 +01:00
src [ADD] functionality to read "x-forwarded-for" and "x-real-ip" headers when handling a request (!329) 2024-05-12 13:56:03 +00:00
tests Updated insurance tests 2024-05-06 19:33:44 +01:00
.dockerignore Updated dependencies + A few other things (!150) 2023-10-14 09:01:41 +00:00
.editorconfig Fixes Markdown Formatting 2024-05-07 13:37:01 -04:00
.eslintignore Code Styling Changes 2024-05-06 02:36:35 -04:00
.eslintrc.json ESLint Configuration Format & Import Sorting 2024-05-07 14:26:54 -04:00
.nvmrc Updates NPM Packages - Node v20.11.1 LTS (!260) 2024-03-14 09:08:40 +00:00
.swcrc Removed @tests path alias from .swcrc 2023-10-29 22:20:34 +00:00
docker-compose.yml Add Repo 2023-03-03 15:23:46 +00:00
Dockerfile Formatting/Linting Changes (!168) 2023-11-16 21:42:06 +00:00
Dockerfile.docs Update Dockerfile.docs (!174) 2023-12-12 09:50:46 +00:00
Dockerfile.pnpm Updated dependencies + A few other things (!150) 2023-10-14 09:01:41 +00:00
gulpfile.mjs Bake build data directly into the executable (!297) 2024-04-18 07:54:16 +00:00
package.json ESLint Configuration Format & Import Sorting 2024-05-07 14:26:54 -04:00
pkgconfig.json Fixed stacktraces and source maps on the built exe (!153) 2023-10-15 07:31:16 +00:00
Server.code-workspace ESLint Configuration Format & Import Sorting 2024-05-07 14:26:54 -04:00
tsconfig.base.json Merge branch '3.8.0' into testing-redux 2023-11-06 15:06:46 -05:00
tsconfig.json fix/profiler (!166) 2023-11-06 19:39:13 +00:00
tsconfig.typedef.json fix/profiler (!166) 2023-11-06 19:39:13 +00:00
typedoc.json Formatting/Linting Changes (!168) 2023-11-16 21:42:06 +00:00
vitest.config.ts Auto-formatting Sweep 2023-11-15 21:12:40 -05:00