Peter on Nostr: Relay operators out there: If you use NGINX as a proxy increase your proxy timeouts, ...
Relay operators out there: If you use NGINX as a proxy increase your proxy timeouts, otherwise your server closes the connection every minute or so. The whole idea behind websockets is that they can remain open, so configure it accordingly. Thanks to
Mike Dilger (npub1acg…p35c) for this tip! It is also helpful to use gossip more often, the logs can tell you many things about nostr.
proxy_read_timeout 1d;
proxy_send_timeout 1d;
Published at
2023-02-13 09:12:38Event JSON
{
"id": "0000bd9b649d43ba0ca308818e1d59e3193efa997175d357005cc1b7819046e8",
"pubkey": "0e6802d8b7caf0206b1df7b81d2421a27b2dd5a3396f74bfcfe5bae8997c959a",
"created_at": 1676279558,
"kind": 1,
"tags": [
[
"client",
"gossip"
],
[
"p",
"ee11a5dff40c19a555f41fe42b48f00e618c91225622ae37b6c2bb67b76c4e49"
],
[
"e",
"571bd8423b33983c4a83a3b8cf92025fc90089755379f3f015c7fe8ee79c54af",
"wss://relay.damus.io",
"mention"
],
[
"nonce",
"22496",
"16"
]
],
"content": "Relay operators out there: If you use NGINX as a proxy increase your proxy timeouts, otherwise your server closes the connection every minute or so. The whole idea behind websockets is that they can remain open, so configure it accordingly. Thanks to #[1] for this tip! It is also helpful to use gossip more often, the logs can tell you many things about nostr.\n#[2] ",
"sig": "20b728f41ffd1ba768c60ad15a9ffebf77cfb908c095448d197cd91674ba30901168c997d6addfd9a4f49c66193a6a987a596e414d2b76d770e917ed357b3dd1"
}