I have an Odroid N2+ running Arch Linux ARM that I just love. I have installed a bunch of shit on it like jellyfin (TV), miniflux (RSS), gonic/airsonic-refix (music), soju/gamja (IRC), komga (comics).

I am starting to lose track of things. Like which port which service is running on. Sometimes I even forget which service I am running.

It would be nice to maintain a text configuration that I can use to provision this setup if I have to reinstall everything (as is tradition) and something I can glance over to get a state of things.

Any ideas for this? I feel like something like ansible should for this. I tried looking up stuff for this but search results always show some sweaty nerd managing kubernetes on a fleet of Raspberry Pis (the sweaty nerd calls it “homelab”). Before I start hacking my own stuff I would like to hear if someone else has experience with this.

Thanks.

  • loathesome dongeaterOPA
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 months ago

    listen on one port and then forward to whatever port the service uses

    Can you give a brief example of this? I am not able to follow

    • 🏳️‍⚧️Edward [it/its]
      link
      fedilink
      arrow-up
      2
      ·
      5 months ago

      If your service listens on port 2555, you could tell nginx to listen on port 2556 and then forward things to port 2555.

      This is a very basic nginx config file.

      server {
        listen 2556;
        location / {
          proxy_pass http://127.0.0.1:2555;
        }
      }