29
submitted 2 years ago* (last edited 2 years ago) by enemenemu@lemm.ee to c/selfhosted@lemmy.world

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?

you are viewing a single comment's thread
view the rest of the comments
[-] Xanza@lemm.ee -5 points 2 years ago
[-] themachine@lemmy.world 4 points 2 years ago
[-] Xanza@lemm.ee 0 points 2 years ago* (last edited 2 years ago)

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 13 points 2 years ago* (last edited 2 years 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.

[-] keyez@lemmy.world 1 points 2 years ago

Caddy can do the same and there is a steep learning curve but I switched about a year ago and only need to touch the config file when I add a host. Can even bring that config to a new server and it will stand up once it starts and picks up the config.

[-] enemenemu@lemm.ee 1 points 2 years ago

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

[-] Xanza@lemm.ee -2 points 2 years ago

How complex is your nginx reverse proxy? Caddy is relatively straight forward: https://i.xno.dev/u/fc8N0n.png

[-] enemenemu@lemm.ee 1 points 2 years ago

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

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

[-] Xanza@lemm.ee 1 points 2 years ago

it doesn't work

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

[-] enemenemu@lemm.ee 2 points 2 years 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

[-] Xanza@lemm.ee 0 points 2 years ago

But you gotta understand, there's no subject to your statement. You just said "it doesn't work" and I have no idea what you're doing. Are you installing podman? Are you installing caddy? Are you setting up caddy as a reverse proxy? Are you trying to bring your dog back from the dead? I have no frame of reference.

[-] enemenemu@lemm.ee 2 points 2 years ago* (last edited 2 years ago)

Sorry for not having expressed what I did. I wrote a podman compose file, pulled the caddy image, wrote a caddyfile, started it and tried to connect to a service via subdomain.domain.tld .

The caddyfile contains my http and tls ports and the domain and ip for the reverse proxy routing according to the docs.

The result is no log entry in caddy and no result in the browser or curl.

[-] lucid@lemmy.dbzer0.com 2 points 2 years ago

You'll probably get better help if you post your config and any logs. Caddy may not log an entry to a file but you can watch the console logs to see everything (podman logs caddy or similar.)

[-] enemenemu@lemm.ee 2 points 2 years ago

Thanks. For now, I spend too much time with it. I'll try some other time again.

[-] Xanza@lemm.ee 1 points 2 years ago

Did you setup DNS to point to your caddy sever?

[-] enemenemu@lemm.ee 1 points 2 years ago

Yes, it works with nginxproxymanager. There's probably something going on with selinux - I may disable it the next time to test the assumption.

[-] Xanza@lemm.ee 1 points 2 years ago

Is your caddy container network set to host? Or at least set to a network which is on the same network as your proxied services?

Ensure that nginx is stopped, and if the domain doesn't work, attempt to direct connect using your servers IP address and the correct port. If you still can't connect, check your firewall rules.

[-] enemenemu@lemm.ee 1 points 2 years ago

Thx, thats not it

this post was submitted on 01 Mar 2025
29 points (96.8% liked)

Selfhosted

61708 readers
812 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:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

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

Questions? DM the mods!

founded 3 years ago
MODERATORS