this post was submitted on 01 Mar 2025
0 points (NaN% liked)

Selfhosted

46265 readers
302 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.

Resources:

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

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

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?

top 10 comments
sorted by: hot top controversial new old
[–] Dragonish@lemmy.dbzer0.com 0 points 1 month ago (1 children)

If you have a reverse proxy running on the mini pc and handling jellyfin.y.com then there is this plugin which will send the WoL packet to the jellyfin server when a request is sent.

https://github.com/dulli/caddy-wol

[–] enemenemu@lemm.ee 0 points 1 month ago (1 children)

Thanks!

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

[–] Xanza@lemm.ee 0 points 1 month ago (1 children)
[–] themachine@lemmy.world 0 points 1 month ago (1 children)
[–] Xanza@lemm.ee -1 points 1 month ago* (last edited 1 month ago) (1 children)

I mean, use what you want. But caddy is significantly easier to configure. It additionally handles SSL and protects your proxy targets with zero configuration (by default) and supports live configuration reload via the admin interface. It's tits.

Here's my config: http://i.xno.dev/u/fc8N0n.png

Caddy is running a wildcard SSL cert, so once I've connected my box to cloudflare, I can setup a subdomain by simply adding it to my caddy config. No additional setup is required. It also works directly with docker, so if you install the lemmy (name of the container) docker container, you can reverse_proxy by simply (assuming they're on the same docker network):

lemmy.domain.com {
    reverse_proxy lemmy:80
}
[–] themachine@lemmy.world 1 points 1 month ago* (last edited 1 month ago)

That sounds more or less to be exactly what I'm doing with NPM currently. I don't see how it's easier to configure as all I did was fire up the NPM container, log in, and add my host targets.

NPM also handles SSL both standard http verification as well as DNS auth for wildcards.

[–] AbouBenAdhem@lemmy.world 0 points 1 month ago (1 children)
[–] enemenemu@lemm.ee 0 points 1 month ago* (last edited 1 month ago) (1 children)

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

[–] sxan@midwest.social 0 points 1 month ago (1 children)

That's how it works. Wake-on-LAN wakes the computer if the computer receives a network request. Which is the same thing you're asking for, right?

[–] lemming741@lemmy.world 1 points 1 month ago

But it has to be a magic packet, not just any ole request.