This is for OpenBSD, but still helpful to learn how it works. It's pretty simple.
https://nox.im/posts/2021/0724/hosting-tor-hidden-services-with-vanity-onion-addresses/
Are there any guides you’re aware of on how to expose a client as an onion service? I’ve been meaning to do so with nostr:npub15dc33fyg3cpd9r58vlqge2hh8dy6hkkrjxkhluv2xpyfreqkmsesesyv6e.
This is for OpenBSD, but still helpful to learn how it works. It's pretty simple.
https://nox.im/posts/2021/0724/hosting-tor-hidden-services-with-vanity-onion-addresses/
Found an interesting guide to host an onion service with Node.js on Replit.