mikeziri on Nostr: On my nostr-rs-relay, running under docker, the log always shows the local host ...
On my nostr-rs-relay, running under docker, the log always shows the local host machine’s IP. I’m reverse proxying the connections to docker with forced headers like X-Real-IP and X-Forwarded-For. Any way one can configure it to log X-Real-IP if it is present, instead of IP?
I could try to study a bit of Rust and pull request 😅
Published at
2022-12-27 01:22:23Event JSON
{
"id": "1621dd64d22e11f0ef93171d49cc42b121138868122a5e85758ef65ed0a3499f",
"pubkey": "21568c942fab85594a580a27ad4c5cdfa055887076f84b810e5f470f7713c55e",
"created_at": 1672104143,
"kind": 1,
"tags": [
[
"e",
"cb97958f3d9773a47cbac244681812f9e15a16a786d2e6b877837171eb5de5cf"
],
[
"p",
"35d26e4690cbe1a898af61cc3515661eb5fa763b57bd0b42e45099c8b32fd50f"
]
],
"content": "On my nostr-rs-relay, running under docker, the log always shows the local host machine’s IP. I’m reverse proxying the connections to docker with forced headers like X-Real-IP and X-Forwarded-For. Any way one can configure it to log X-Real-IP if it is present, instead of IP?\nI could try to study a bit of Rust and pull request 😅",
"sig": "407116b813bde8547b74dcc0394fd88adfa02e886ce80f405d3c289a174cda579c06e9f61ae8fc0084577f146d617b18d4a5fdb2d275a3465316fe9d9825f430"
}