this post was submitted on 05 Jul 2025
18 points (84.6% liked)

Selfhosted

61475 readers
880 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
 

So, I tried linking my Lemmy instance akaris.space but it says the ssl handshake failed and i can't seem to figure out what went wrong.

top 31 comments
sorted by: hot top controversial new old
[–] 3dcadmin@lemmy.relayeasy.com 4 points 1 year ago (2 children)

So just got back to this... so if it is parked on the bun you need to change the nameservers at cloudflare to actually get the domain to work. Without that step cloudflare can't do much with it. Cloudflare will tell you your own personal cloudflare nameservers, porkbun will have set them to theirs, so firstly find out what the nameservers are set to in cloudflare. Work through this guide

https://developers.cloudflare.com/dns/zone-setups/full-setup/setup/

Once cloudflare has the nameservers and they are resolving, which can take 24 hours, you can then route through your tunnel or whatever...

[–] cutebc24@piefed.social 1 points 1 year ago (1 children)
[–] 3dcadmin@lemmy.relayeasy.com 2 points 1 year ago (1 children)

seen the other post about white screen - you need to turn on the no tls verify in additional settings on cloudflare tunnel and it needs to be set to https and then localhost to work. So just to make sure, the easiest way to do this is to go to the tunnel in zero trust, add a public hostname which is exactly the same as the domain you added in yunohost, set it to https, localhost, then turn on no tls verify. Should work then...

[–] cutebc24@piefed.social 1 points 1 year ago

thanks, i'll wait a bit!

[–] cutebc24@piefed.social 1 points 1 year ago* (last edited 1 year ago)

It says arnold.ns.cloudflare.com and dalary.ns.cloudflare.com on Porkbun, on NS for the DNS checker it shows an X, IDK what's going on, I'll read the manual when I get back from town

[–] tal@lemmy.today 3 points 1 year ago

I'm not familiar enough with Cloudflare's error messages


or deployment with Cloudflare


to know what exact behavior that corresponds to, but I'd guess that most likely it can open a TCP connection to port 443 on what it thinks is your server, but it's not getting HTTPS on that port or your server isn't configured to serve up the right certificate for that hostname or the web server software running on it is otherwise broken. Might be some sort of intervening firewall.

I don't know where your actual server is, may not even be accessible to me. But if you have a Linux machine that can talk to it directly -- including, perhaps, the server itself -- you should be able to see what certificate it's handing back via:

$ openssl s_client -showcerts -servername akaris.space IP-address-of-actual-server:443

That'll try to establish a TLS connection, will send the specified server name so that if you're using vhosting on the server, it knows which site to return, and then will tell you what certificate the web server used. Would probably be my first diagnostic step if I thought that there was a problem with the TLS handshake on a machine I was running.

That might provide enough information to you to let you resolve the issue yourself.

Beyond that, trying to provide much more information probably isn't possible without more information about how your server is set up and what actually is working. You can censor IP addresses if you want to keep that private.

[–] RheumatoidArthritis@mander.xyz 2 points 1 year ago (1 children)
[–] cutebc24@piefed.social 1 points 1 year ago (1 children)

I have, thanks, now it shows "parked on the bun"

[–] RheumatoidArthritis@mander.xyz 2 points 1 year ago (1 children)

What is porkbun, your hosting provider?

[–] cutebc24@piefed.social 1 points 1 year ago (1 children)

The site I bought the domain at :3

[–] RheumatoidArthritis@mander.xyz 3 points 1 year ago (1 children)

I think you pointed Cloudflare DNS records at the wrong thing. You can PM me if you're afraid to post details here but you should point Cloudflare at your hosting provider, or your home IP if you're hosting at home, not the place where you bought the domain.

[–] 3dcadmin@lemmy.relayeasy.com 3 points 1 year ago

Point to cloudflare as using tunnels... I have said this already, but this is exactly what is happening

[–] jacksquat@what.forfi.win 2 points 1 year ago* (last edited 1 year ago) (1 children)

Set the SSL mode to "Full". Then go to "Rules" and create three rules. This is also the order in which they should be processed:

1.
Name: lemmy u all
Custom filter expression: URI path equals /u/*
All other options disabled.
2.
Name: lemmy nodeinfo all
Custom filter expression: URI path equals /nodeinfo/*
All other options disabled.
3.
Name: lemmy inbox all
Custom filter expression: URI path equals /inbox/*
All other options disabled.

This should get your instance running behind Cloudflare's tunnel.

*edited for formatting

[–] cutebc24@piefed.social 1 points 1 year ago (1 children)

What do I put for "rule type" on Cloudflare? ex: redriect or route request, transform request/response, modify configurations

[–] jacksquat@what.forfi.win 2 points 1 year ago (1 children)

Oops sorry about that, you want them all as configuration rules

[–] cutebc24@piefed.social 1 points 1 year ago* (last edited 1 year ago) (1 children)
[–] jacksquat@what.forfi.win 2 points 1 year ago (2 children)
[–] cutebc24@piefed.social 1 points 1 year ago

but maybe not because it still says the handshake failed

[–] cutebc24@piefed.social 1 points 1 year ago (1 children)

what action do i put, i put ssl, idk

[–] jacksquat@what.forfi.win 2 points 1 year ago (2 children)

I've left all of the actions off

[–] cutebc24@piefed.social 1 points 1 year ago (1 children)

oh, how do u do that? it says i must have an action

[–] jacksquat@what.forfi.win 2 points 1 year ago (1 children)

So sorry, it's been a while.... Add the following actions:

  1. Browser integrity check (Then turn off)
  2. Disable RUM
  3. Disable Zaraz
  4. Email Obfuscation (Then turn off)
  5. Fonts (Then turn off)
  6. Hotlink Protection (Then turn off)
  7. Opportunistic Encryption (Then turn off)
  8. Rocket Loader (Then turn off)
[–] cutebc24@piefed.social 1 points 1 year ago (1 children)

Thanks so much!! This will totally help me and I'll tell u the results

[–] cutebc24@piefed.social 1 points 1 year ago* (last edited 1 year ago) (1 children)
[–] jacksquat@what.forfi.win 2 points 1 year ago (2 children)

That looks like a DNS issued I'd think. Maybe double check the tunnel and your DNS records just to make sure they're pointing correctly?

[–] cutebc24@piefed.social 1 points 1 year ago

Thank you, it shows akarisarea.xyz as a white screen and www.akarisarea.xyz as an SSL handshake error

[–] cutebc24@piefed.social 1 points 1 year ago

Okay! It looks like when I go to NS, the nameservers say X on DNS checker

[–] cutebc24@piefed.social 1 points 1 year ago

action parameters are required for the set_config action

[–] 3dcadmin@lemmy.relayeasy.com 2 points 1 year ago (2 children)

How are you using Cloudflare, and what are you serving the lemmy instance on? I'm guessing it is due to the ssl mode chosen as said before

[–] 3dcadmin@lemmy.relayeasy.com 2 points 1 year ago

You want to use flexible ssl/tls for starters, doubtful it will work otherwise. Log in to cloudflare, choose domain, then SSL/TLS and see if encryption is set to flexible. See what that gets you, though it can take 15 mins for effects to show up. As long as the server can be reached cloudflare will try and match a certificate so lemmy gets served, as long as the server is set up correctly and the ports etc. are correctly forwarded and open

[–] cutebc24@piefed.social 1 points 1 year ago

I'm using it to set a tunnel, and lemmy instance is yunohost. since my domain is on porkbun, it says now "parked on the bun"