I’ve got a mini pc which is running always and another one which consumes a lot more power for e.g. jellyfin.

Can I configure it such that the jellyfin server only boots if I connect to it? E.g. I try to connect to jellyfin.y.com and then the server boots because the mini pc tries to connect to it.

I already figured out how to let it sleep automatically as soon as nobody is watching.

Edit: can I add the magic package to the reverse proxy?

    • enemenemu@lemm.eeOP
      link
      fedilink
      English
      arrow-up
      6
      ·
      9 days ago

      Thanks!

      I use nginxproxymanager, I’ll try to find something similar (I couldn’t find something directly)

        • enemenemu@lemm.eeOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          8 days ago

          I’d be happy to switch if I had a good tutorial for caddy. Unfortunately I couldn’t find one.

            • enemenemu@lemm.eeOP
              link
              fedilink
              English
              arrow-up
              1
              ·
              8 days ago

              It doesn’t work. I can’t manage to debug it.

              Fedora server. Podman. Selinux. Port 8443. Ipv4.

              • Xanza@lemm.ee
                link
                fedilink
                English
                arrow-up
                2
                arrow-down
                1
                ·
                8 days ago

                it doesn’t work

                …what exactly doesn’t work. You’re not really giving me enough to help you with.

                • enemenemu@lemm.eeOP
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  ·
                  8 days ago

                  Thx for offering your help.

                  If I would know, I could debug it, but I don’t know where the problem is. I assume the problem is somewhere with podman or selinux

    • enemenemu@lemm.eeOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      9 days ago

      Thanks! I use wake on lan with rtcwake to boot at a certain time. I also found an app via which I can boot the server via wake on lan. But it would be nice if it could wake up just by requesting the service

  • Lucy :3@feddit.org
    link
    fedilink
    English
    arrow-up
    4
    ·
    9 days ago

    Also an option, systemd based, could be to use systemd socket files, which (as far as I understand) opens a dummy socket and starts the matching service as soon as it’s requested.

  • ShepherdPie@midwest.social
    link
    fedilink
    English
    arrow-up
    3
    ·
    9 days ago

    I think you’ll want to look into Wake On LAN to do this. I can’t give you instructions (tried once unsuccessfully on a Windows installation) but that should be enough to get you started.

    • enemenemu@lemm.eeOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      9 days ago

      Thanks! I use wake on lan with rtcwake to boot at a certain time. I also found an app via which I can boot the server via wake on lan. But it would be nice if it could wake up just by requesting the service

  • Mubelotix@jlai.lu
    link
    fedilink
    English
    arrow-up
    2
    ·
    8 days ago

    I made a tool that can hibernate systemd services when no request get through their associated nginx service. Using it on jellyfin, works great