this post was submitted on 02 Apr 2025
0 points (NaN% liked)

Selfhosted

54041 readers
540 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

Hello everyone.

I bought domain name (example.com) from https://njal.la/ and I want to direct it to my server but I need help with it.

Let's say that I have public and static home IPv4 address 10.172.172.172 (example) and on that address is a computer running on 192.168.200.101 (example) and there is jellyfin server (port 1020/tcp), immich server(port 1021/tcp) and bitwarden server (port 1022/tcp).

My question is can I create a subdomain and point it to these servers?

Like; jellyfin.example.com -> 192.168.200.101:1020

immich.example.com -> 192.168.200.101:1021

bitwarden.example.com -> 192.168.200.101:1022

Or do I have to buy two more separate domains for these servers? Like example2.com and example3.com?

Sorry for english and also if this is a stupid question but I need to know. I have never so far used domains and never dabbled in dns setting and I don't know where to search for info.

top 7 comments
sorted by: hot top controversial new old
[–] Moonrise2473@feddit.it 0 points 9 months ago (1 children)

You run a proxy on your server (the easiest is "nginx proxy manager" that has a nice web UI), then open your router to port 80 and 443 to nginx proxy manager (NOT the web UI configuration port!)

Then you instruct the proxy to route the traffic according to the URL.

Someone coming to 10.172.172.172 with no URL? Drop the connection.

Someone going to if.example.com? Forward to 192.168:8080 and so on

[–] Octavusss@lemm.ee 0 points 9 months ago (1 children)

And what should i set in the domain settings on https://njal.la/?

[–] Moonrise2473@feddit.it 0 points 9 months ago (1 children)

Set the A record to your IP address and CNAME to @ to all the subdomains you need

[–] Octavusss@lemm.ee 0 points 9 months ago (1 children)

Would it be okay to contact you via signal/simplex or any messaging app for help if I'll have more very specific questions?

[–] Moonrise2473@feddit.it 1 points 9 months ago

I'm an amateur, not a professional

[–] exu@feditown.com 0 points 9 months ago (1 children)

Just FYI, unless you absolutely need anonymity from ICANN/the country owning the TLD I wouldn't choose Njalla. Legally any domain you purchase is owned by them, that's how they can keep your name from law enforcement requests. However, that also means in any dispute between you and Njalla they can just refuse to service you and keep your domain without recourse.
Normal domain registrars are regulated and if you purchase a domain through them you are its legal owner, if they don't want your service they must still allow you to transfer the domain somewhere else. Any good registrar provides domain WHOIS protection and will only give out your name to legal requests by law enforcement, so I wouldn't worry too much about that.

[–] liliumstar@lemmy.dbzer0.com 1 points 9 months ago

Have you been wronged by njalla?

I think having an external owner is preferable.