nextcloud / nextcloud-talk-recording

GNU Affero General Public License v3.0
12 stars 3 forks source link

Log "real" client IP #5

Closed fancycode closed 3 months ago

fancycode commented 1 year ago

How to use GitHub


The recording server currently logs the IP address of the client connecting to it. If the server is running behind an offloading webserver, this IP gets logged instead of the "real" client IP. There should be a way to configure a list of trusted upstream servers (IP and/or network range) and if a request is coming from their IP, headers like X-Forwarded-For or X-Real-IP should be used for logging.

Example (I was performing the request from 87.123.49.***):

INFO:werkzeug:10.42.2.108 - - [27/Apr/2023 12:24:08] "GET / HTTP/1.1" 404 -