Depends on the relay implementation that you're running. I'm using this one: https://github.com/scsibug/nostr-rs-relay.git
There's a setting for it in config.toml
someone was talking about something that needs ot be done in nginx too
Please Login to reply.
This guide will get you set up properly:
https://github.com/BlockChainCaffe/Nostr-Relay-Setup-Guide