Even bigger challenge. Write your own relay software.
I wrote my own relay software before. Sadly haven’t worked on it in a while, but really taught me a lot about how #nostr works.
And definitely reach out if you have any questions!
https://github.com/rrainn/nostr-relay