You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How do I get ttyd to log the clients' real ip instead of 127.0.0.1? I should mention that passing or not passing the -i option doesn't (and shouldn't) have any effect here.
The text was updated successfully, but these errors were encountered:
I tagged this as a question because I wasn't sure if it just wasn't supported or I just didn't know how to. So your comment answers my question.
But either way, even though nginx can log ip fine, it would be nice too to be able to see the ip on ttyd logs on terminal. I am forwarding he real-ip related headers from nginx, ttyd just needs to read the values from the header and print it on terminal.
I am running ttyd in my host machine (that is, not under docker, vm or bridged network) with the following command:
$ ./ttyd.x86_64 -i 127.0.0.1 -p 9000 -W command
It is then reverse proxied through nginx. Part of the relevant nginx config is below:
Requests are logged in the terminal as:
How do I get ttyd to log the clients' real ip instead of 127.0.0.1? I should mention that passing or not passing the
-i
option doesn't (and shouldn't) have any effect here.The text was updated successfully, but these errors were encountered: