Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Selfhosted
  3. Help with domain

Help with domain

Scheduled Pinned Locked Moved Selfhosted
selfhosted
18 Posts 9 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • exu@feditown.comE [email protected]

    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.

    L This user is from outside of this forum
    L This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #9

    Have you been wronged by njalla?

    I think having an external owner is preferable.

    exu@feditown.comE 1 Reply Last reply
    0
    • M [email protected]

      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

      O This user is from outside of this forum
      O This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #10

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

      M 1 Reply Last reply
      0
      • O [email protected]

        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.

        O This user is from outside of this forum
        O This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #11

        And is there any problem to setting this up in docker compose?

        1 Reply Last reply
        0
        • O [email protected]

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

          M This user is from outside of this forum
          M This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #12

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

          O 1 Reply Last reply
          0
          • M [email protected]

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

            O This user is from outside of this forum
            O This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #13

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

            M 1 Reply Last reply
            0
            • L [email protected]

              Have you been wronged by njalla?

              I think having an external owner is preferable.

              exu@feditown.comE This user is from outside of this forum
              exu@feditown.comE This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #14

              No, it's just something to be aware of

              1 Reply Last reply
              0
              • shimitar@downonthestreet.euS [email protected]

                Create the subdomains and have them all point to your PUBLIC IP (10.172.. But keep in mind 10... Are -not- public ip)

                You will need to setup redirect from your router/gateway to your internal ip.

                Unless you are on cg-nat (that would explain a 10... class ip) in that case, you will definitely need a real public static ip

                To "match" the various ports all to 443, you will need a reverse proxy, since those ports are not standard. This could be mitigated with srv DNS records, but I really strongly suggest not to go public without https and reverse proxy.

                A This user is from outside of this forum
                A This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #15

                SRV records won't help with browser traffic.

                1 Reply Last reply
                0
                • O [email protected]

                  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.

                  N This user is from outside of this forum
                  N This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #16

                  Lots of questions, let's take it one step at a time. You have a domain, now you can point it to your public IP, so that whenever someone tries to access example.com they ask their DNS server and it replies with 10.172.172.172 (which btw is not a valid public IP). Now that request will hit your router, you need to configure your router to redirect ports 80 and 443 to 192.168.200.101, that way the request to example.com gets to your local machine.

                  Ok, so now you need your local machine to reply on that port, I recommend using Caddy it's very easy to setup, but NGIX is the more traditional approach. A simple Caddy config would look like:

                  example.com {
                    respond "Hello"
                  }
                  
                  
                  jellyfin.example.com {
                      handle {
                          reverse_proxy http://192.168.200.101:1020/
                      }
                  }
                  

                  So after the request reaches Caddy it will see that the person tried to access, example.com and respond with a "Hello".

                  If instead you had tried jellyfin.example.com the DNS would have sent you to 10.172.172.172, your router would send that to 192.168.200.101, Caddy would then send it to 192.168.200.101:1020, which is Jellyfin so that would get returned.

                  There are some improvements that can be made, for example if both caddy and Jellyfin are docker you can share a network between them so Jellyfin is only exposed through caddy. Another possibly good idea is to add some authentication service like Authelia or Authentik to harden stuff a little bit. Also as you might have noticed Caddy can forward stuff to other computers, so you can have one machine on your network exposing multiple services on multiple machines.

                  1 Reply Last reply
                  0
                  • O [email protected]

                    My real ip starts with 89. The 10.172.172.172 was just an example.

                    shimitar@downonthestreet.euS This user is from outside of this forum
                    shimitar@downonthestreet.euS This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #17

                    Bad example, you picked a reserved range that confused me 🙂

                    1 Reply Last reply
                    0
                    • O [email protected]

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

                      M This user is from outside of this forum
                      M This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #18

                      I'm an amateur, not a professional

                      1 Reply Last reply
                      1
                      • System shared this topic on
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups