this post was submitted on 06 Aug 2026
79 points (97.6% liked)

Selfhosted

61454 readers
547 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
 

I want to expose my services publicly on my own domain name, how would you guys do that?

I have seen people using Cloudflare, but I don't want to use Cloudflare out of principle. I have also seen stuff on caddy and frp that I've done some rough researching.

What do you guys do?

(page 2) 37 comments
sorted by: hot top controversial new old
[–] galacticworm@piefed.social 2 points 1 week ago

If you have a UniFi gateway, you can enable region based firewall on your port forward ip. This then blocks most of the world (incoming) as a first step. Then like others suggest, a reverse proxy. I use Caddy built with the Maxmind geolocation plugin, and I also run fail2ban on my exposed service.

I figure if you don’t need most of the world accessing your services, it is best to exclude them

[–] MagnificentSteiner@lemmy.zip 2 points 1 week ago

I can't answer your question as I haven't taken that step yet, everything is still confined to my LAN.

Here's a similar thread from last month that had a lot of replies. Hopefully will be some useful info there for you. Good luck!

[–] electric_nan@lemmy.ml 1 points 1 week ago (1 children)

Is the server at your house? Or VPS?

[–] pineapplelover@lemmy.dbzer0.com 1 points 1 week ago (1 children)
[–] electric_nan@lemmy.ml 1 points 1 week ago

The way that I handled this, was to get a $5 VPS, and have it proxy all my traffic over wireguard. Your DNS records (and SSL cert) all point to the VPS public IP address. IPtables rules route all relevant traffic.

[–] benoegen@discuss.tchncs.de 1 points 1 week ago

I use traefik combined with crowdsec, there is a plugin for that. There is some pretty good tutorial (in german) on goneuland.de

[–] Reannlegge@lemmy.ca 1 points 1 week ago* (last edited 1 week ago)

I have a Flint 2 with a vanilla install of openWRT, that hosts wireguard. I have 2 static IPs, because I thought hey running my own mail and smtp services cannot be that hard (turns out yes it is hard and not worth the time to deal). Any who I have Wireguard running on my firewall and Caddy running on one of my pi’s, it gets TLS from lets encrypt.

I have a couple of domains that Caddy uses to point things out to the world or my LAN/vLANs/VPNs. Very few of the things go out to the whole world, but if I wanted to share say a Jellyfin server with someone I could wip up a VPN that only allows Jellyfin through and points DNS to my piholes. Why do I mention my ad blocker? I mention pihole because that what hosts the A records to my domain names that Caddy can serve up, I do not remember why I set it up like this, I would have to look through my notes but pihole points “service”.domain1or2.xyz to caddy which than points to the right service.

Edit: went and looked A records are hosted on pihole for my LAN/vLANs/VPNs to prevent things needing to go out and come back just to tell devices where on my LAN services are.

[–] TrippinMallard@lemmy.ml 1 points 1 week ago

Netbird has a reverseproxy that's super easy to setup to point to one of your netbird nodes.

You may also want to consider a hardened single sign-on solution, as that can enable 2FA for all your services, even those that don't have them built-in. I use Authentik.

[–] Decronym@lemmy.decronym.xyz 0 points 1 week ago* (last edited 2 hours ago)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
CA (SSL) Certificate Authority
CSAM Child Sexual Abuse Material
DNS Domain Name Service/System
Git Popular version control system, primarily for code
ISP Internet Service Provider
SSD Solid State Drive mass storage
TLS Transport Layer Security, supersedes SSL
VPN Virtual Private Network
VPS Virtual Private Server (opposed to shared hosting)
nginx Popular HTTP server

10 acronyms in this thread; the most compressed thread commented on today has 24 acronyms.

[Thread #74 for this comm, first seen 6th Aug 2026, 09:00] [FAQ] [Full list] [Contact] [Source code]

load more comments
view more: ‹ prev next ›