sandwich on Nostr: If so and on nginx add proxy_set_header X-Real-IP $remote_addr; to your websocket ...
If so and on nginx add
proxy_set_header X-Real-IP $remote_addr;
to your websocket location block. If using another reverse-proxy solution, just make sure your setting the X-Real-IP header.
Published at
2024-04-10 06:22:45Event JSON
{
"id": "a6cc867322c7acc38fbf0888a8b62048f4ca4d6b49dc03211fb0cfe5b90c206b",
"pubkey": "e771af0b05c8e95fcdf6feb3500544d2fb1ccd384788e9f490bb3ee28e8ed66f",
"created_at": 1712730165,
"kind": 1,
"tags": [
[
"p",
"b12b632c887f0c871d140d37bcb6e7c1e1a80264d0b7de8255aa1951d9e1ff79",
"wss://relay.damus.io/",
"PastaGringo 🤖⚡"
],
[
"e",
"a28be4e32f1456fc934cffb6bf869660f09e6622357a4d34860957242ae1253e",
"wss://relay.damus.io/",
"root"
],
[
"e",
"3aca375270315f6d31551596436d99bc1e39b689d8bb9e46efe0fa44d48a6cea",
"",
"mention"
],
[
"e",
"89d51fd6598eb6a9546189b49d0fdb8d3e56f659239bd0861033a87ae697faf8",
"wss://nosflare.plebes.fans/",
"reply"
]
],
"content": "If so and on nginx add \n\nproxy_set_header X-Real-IP $remote_addr; \n\nto your websocket location block. If using another reverse-proxy solution, just make sure your setting the X-Real-IP header.",
"sig": "c2aaa9065d01d2ae3ef4bec62fca5f5624a81567baa7d214e258d1543a6023a36e53080f8cb8578022e93e89b4f421c0729b7368dc39cbd28348d795f428fa9a"
}