Single webserver for multiple service webinterfaces - eviltoast

Hi all, I’m rather new to the whole selfhosting stuff and only have limited experience (ran everything on my Raspberry). Now I’ve finally a real server I can use and I’m currently planning what I want to host.

There will be multiple service which have an web interface, like portainer, wireguard, nhost and so on and then there will be my personal developer portfolio website. Everything dockerized.

Say I have the domain “domain.com” which should point at my website. The other services either run on different ports, say domain.com:1234 or with different paths like domain.com/service. Both isn’t great. I could either use a reverse proxy which redirects to subdomains or use virtualhosts. Both should work imo (any thoughts on what to use?). Now that every ports other than 80, 443 and 22 are closed things should be somewhat safe. Anyways, I’m a bit concerned about having tens of webservers for each service, how can I be sure that all of them are safe and up to date?

That leads to my question: could I use a single webserver for all the service webinterfaces? And if so, how would I configure that?

Thanks!

  • eddyizm@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Dealing with this on a couple of servers at the moment. I find the hardest part is actually the ssl. Let me know if you need help. I’ve used apache in the past bit using nginx this time around.

    • Annual-Advisor-7916@alien.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Thanks! What exactly do you mean with SSL is the hardest part?

      I’m going to use NGINX for my website since I used it a few times and I don’t need any of Apaches features.