m1k1o / go-transcode

On-demand transcoding origin server for live inputs and static files in Go using ffmpeg. Also with NVIDIA GPU hardware acceleration.
Apache License 2.0
212 stars 39 forks source link

reverse proxying #4

Closed klahaha closed 1 year ago

klahaha commented 2 years ago

from here

Server.Proxy setting should enable/disable trusting of X-Forwarded-For headers

m1k1o commented 2 years ago

Could be implemented as HTTP middleware.

klahaha commented 2 years ago

i'm curious why. go-transcode doesn't filter by IP so why X-Forwarded-For ?

m1k1o commented 2 years ago

Just for transparency and auditing, to have real user's IP in logs.