this post was submitted on 20 Dec 2024
39 points (93.3% liked)

Selfhosted

40708 readers
397 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
 
  • Use cloudflare to get an api token
  • Set an a record for a wildcart cert *.domain.com pointing towards your servers local IP such as 192.168.0.1, turn off cloudflare proxy
  • Go into NPM and setup the SSL cert using dns challenge and your api token
  • setup a proxy host user your subdomain.domain.com pointing towards your docker container
  • key step!!!! make sure you do not have conflicting ports 80 and 443 on your machine. On unraid the device management ports are set to this, but for NPM to do local proxies, it needs access to these ports.
you are viewing a single comment's thread
view the rest of the comments
[–] emax_gomax@lemmy.world 4 points 2 days ago (1 children)

I would recommend just using caddy. It removes the complicated part of ssl management. For a local network it'll setup a local self signed certificate authority and you can just install those certificates to any devices on your LAN that you want to have access. For a public setup it'll use letsencrypt. You will still need to setup dns if you want wildcard routing.

[–] vividspecter@lemm.ee 1 points 2 days ago (1 children)

If you want to use DNS challenge with Caddy it's kind of annoying though (need to download/compile a separate version with the DNS plugin you need).

Which is probably a good idea if you don't plan to expose the services publicly but want a real certificate to avoid self-signed cert warnings.

[–] emax_gomax@lemmy.world 1 points 2 days ago

I've never had this issue but I run basically everything through docker and presumably it bundles this by default.