selfhosted

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

bdonvr, in Pi-Hole or something else for network ad blocking?

Pi-hole is great, but unfortunately ads in YouTube or other streaming services is not one of the things it blocks.

dan,
@dan@upvote.au avatar

PiHole and similar services just use DNS blocking, which only works if the ads are served via a third-party ad server. Sites with their own ad inventory (YouTube, Facebook, Twitter, etc) can’t be blocked this way since they can just serve the ads from the same domain as their regular content.

HexagonSun,

Glad I read this - all my other devices block ads perfectly well already, but was wondering if I could block YouTube ads on my Apple TV… I guess not!

greyskies,

Not sure of any downside yet but setting your country to Albania via vpn removes all YouTube ads on Apple TV. Was just informed of this yesterday and as mentioned there may be reasons to not do this.

mgrimace,

If you’re comfortable self hosting you can use isponsorblocktv to block ads/sponsorship on YouTube on AppleTv and various smart TVs. I use this + Pi-Hole github.com/dmunozv04/iSponsorBlockTV

PainInTheAES,

Your best bet is getting a platform your can sideload apps onto and running SmartTube

dontblink,
@dontblink@feddit.it avatar

I wonder why we don’t have AI browser extensions that can recognise and obscure possible ads / unwanted content yet

WaxedWookie,

Because the AI isn’t needed, and would be computationally expensive.

Extensions like ublock origin and sponsorblock work just fine.

HerzogVonWiesel,

Simple: That would be the opposite of making money for companies

excitingburp, in Do any of you have that one service that just breaks constantly? I'd love to love Nextcloud, but it sure makes that difficult at times

This has been a serious concern of mine. In the event that I prematurely die I have everything set up with automatic updates, so that hopefully my family can continue to use the self-hosted services without me.

Nextcloud will not stop shitting the bed. I’d give it a few months at most if I died, at which point my family would likely turn back to Google Drive.

I’m looking for a more reliable alternative, even if it’s not as feature-rich.

Chadarius,

The way that they do updates doesn’t make automated updates very easy. There are usually a few little nagging things that have to be done or changed and they don’t always seem to be the same. I just update manually and make sure I’ve got a good backup of all my family’s files.

sneakyninjapants,

If you’re ok with just file storage sftpgo has been solid for me for years now. Does sftp ftp and WebDAV (like nextcloud). Webui isn’t as pretty but it’s fast. Mobile apps will be various sync apps with sftp or WebDAV support. On Android folder sync pro is pretty good for keeping documents and pictures backed up

colebrodine,
@colebrodine@midwest.social avatar

I’ve told my wife and family that if something happens to me, they need to start migrating all their stuff off my self-hosted services to cloud services because its a matter of time before something fails and nobody’s around who knows or cares to fix it.

butt_mountain_69420,

You don’t want your kids using a rope, so keep them away from linux.

colebrodine,
@colebrodine@midwest.social avatar

My oldest kid is a senior in highschool and is starting to show some interest in Linux and this kind of stuff. I’m hopeful that I can change my tune soon and maybe have one of the kids to share a hobby with!

eskuero, (edited ) in Help with NGINX? so close...
@eskuero@lemmy.fromshado.ws avatar

Isnt’t port 81 where usually the nginx proxy manager webui is served? I think you should just forward the requests directly to port 80 and 443 respectively.

helenslunch,
@helenslunch@feddit.nl avatar

Awww yeah, that did it man, thanks

subtext,

Love / hate how it’s always the easiest answer. For me it’s always fucking DNS.

semi, in Linode Alternative Suggestions for Small Projects

I’m pretty happy with Digital Ocean if I need a temporary VPS because I can pay by the minute. Anything that I want to stay alive for more than a month or two, I do on a single 6-core VPS rented long-term from Netcup, a low-cost German provider, deploying with Docker and Traefik.

promitheas,
@promitheas@iusearchlinux.fyi avatar

Netcup seems really interesting, thanks :)

FlatFootFox, in First Nas Build
@FlatFootFox@lemmy.world avatar

www.serverbuilds.net is a popular website online for folks building NASes at home. They’re fans of Unraid as well. They’ve got a Discord if you’re looking for something more interactive. Worth checking out. 👍

fahad,

Thanks.

The_Shwa,

Dang I wish I knew about this a month ago, I just built a NAS myself. Thanks for the link!

rammjet, in SquareSpace dropping the ball.

Namecheap and Cloudflare.

I use a bash script and cron to update Cloudflare using the following:

github.com/NChaves/Cloudflare_DNS_API_bash

Darkassassin07,
@Darkassassin07@lemmy.ca avatar

Oh fuck.

I just remembered I use cloudflare as my name servers, google (well, Squarespace now) only handles the registration.

I probably don’t have to do anything then.

Kinda feel like a moron now…

rjc,
@rjc@lemmy.world avatar

Why not switch your registration to cloudflare. They are awesome as long as you want to use their DNS.

Darkassassin07,
@Darkassassin07@lemmy.ca avatar

Tbh, laziness and lack of need.

I’ll probably reconsider once renewal comes around, but that’s ~4 years away. Until then, as long as things continue functioning: meh. Doesn’t really make a difference.

vsis, in I love my Gitea. Any tips and tricks?
@vsis@feddit.cl avatar

I’ve got 3 tricks for ya:

  • backups
  • backups
  • backups
praise_idleness,

What are you saying? My gitea is my backup!

superduperenigma, (edited )

True pro gamers just use

/Project

/Project1

/Project_latest

/Project_final

/Project_final2

/Project_final_forrealthistime

limonfiesta,

Are you the hacker known as 4Chan? How else could you know my version naming convention?

Regardless, all will be forgiven if you can remind what folder and file actually contains the final version. So… which is it?

jaybone,

Did the hacker 4chan write the pho SQL functions?

poVoq, in Should i host LinguaCafe or are there better alternatives?
@poVoq@slrpnk.net avatar

simjanos-dev.github.io/LinguaCafeHome/

For those wondering why there isn’t a link…

Shadow_Zwiebel,

Oh. Sorry I completely forgot about that. Thank you :)

syd, in Self-hosted or personal email solutions?
@syd@lemy.lol avatar

Yes you need a domain for sure. But you don’t need a server for it, in fact I don’t recommend trying to self-host mail server.

You can use Tuta, Proton Mail, Gmail or iCloud Mail services. You just need to add some DNS records to the domain to redirect mail provider.

SupraMario,

Cloudflare + protonmail is my setup. Works great and if you buy like 2 years it’s pretty cheap.

syd,
@syd@lemy.lol avatar

Yeah I’m also using Proton but I will switch to Tuta because it has more features I think.

SupraMario,

I just wanted mail and privacy directed.

bjoern_tantau, in Do any of you have that one service that just breaks constantly? I'd love to love Nextcloud, but it sure makes that difficult at times
@bjoern_tantau@swg-empire.de avatar

Only complaints I have with Nextcloud are that it’s slow and updates suck over the web interface. But apart from that it has been reliable. I’m not running it through Docker. In fact, my installation is so old that the database tables still have an oc_ prefix.

thisfro,

They don’t anymore? XD

czardestructo,
@czardestructo@lemmy.world avatar

+1 this is exactly my experience. My install must be 5-6 years old at this point and its on the rails. I’ve braved many php updates…

redcalcium,

You might want to try migrating your nextcloud instance to postgres instead of mysql/mariadb. Many people says they get some big performance boost. I’m going to try it myself next weekend to see if it’s true.

humancrayon,
@humancrayon@sh.itjust.works avatar

Mine is a snap install that started 3 years ago on virtual box and was ported over to proxmox. It has never broken, updates automatically, and generally seems to work just fine.

It doesn’t load instantly, but it doesn’t drag by any means.

MentallyExhausted, in Do any of you have that one service that just breaks constantly? I'd love to love Nextcloud, but it sure makes that difficult at times

I run it and mariaDB in docker and they run perfectly when left alone, but everything breaks horribly if I try to do an update. I recently figured out that you need to do updates for NC in steps, and docker (unRAID’s, specifically) defaults to jumping to the latest version. I think I figured out how to specify version now so fingers crossed I won’t destroy it the next time I do updates.

atmur,

This is probably what I’m doing wrong. I’m using linuxserver’s docker which should be okay to auto update, but it just continuously degrades over time with updates until it becomes non-functional. Random login failures, logs failing to load, file thumbnails disappearing, the goddamn Collabora office docker that absolutely refuses to work for more than one week, etc.

I just nuke the NC docker and database and start from scratch every year or so.

fine_sandy_bottom,

Yeah I don’t like auto upgrades. Everyone says it’s fine but that’s not my experience.

My stuff isn’t public facing so I’m not worried about 0-days

thisfro,

For me everything works fine since years, EXCEPT collabora. I use onlyoffice now, it’s much faster and very stable

thisisawayoflife,

You absolutely need to move from patch to patch and cannot just do a multiple version jump safely. You also need to validate the configs between versions, especially major release updates or you risk breaking. New features and optimizations happen and you also may need to change our update your reverse proxy configuration on update, or modify db table configuration (just puking this from memory as I’ve had to do it before). I don’t know that there’s automation for each one of those steps.

Because of that, I run nextcloud in a VM and install it from the binary package. I wrote a shell script that handles downloading, moving the files, updating permissions and copying the old config forward, symlinking and doing the upgrade. Then all I have to do is log in as administrator, check out the admin dashboard and make sure there aren’t new things I have to address in the status page. It’s a pain, but my nextcloud uses external db and redis and PHP caching so it’s not an easy out of the box setup. But it’s been solid for a long time once I adopted using this script.

eos300v,

Would love to take a look at that bash script (or at least a template of it) if you wouldn’t mind

thisisawayoflife,

Sure! I’ll respond with a link in a bit.

thisisawayoflife, (edited )

Here you go:

pastebin.com/f5tL7xwx

There could probably be some additional refactoring here, but it works for my setup. I’m using default nginx paths, so they probably look different than other installs that use custom stuff like /var/www, etc.

Use it by putting it in a shell script, make it executable, then call it:

sudo scriptName.sh 28.0.1

Replace the version with whatever version you’re upgrading to. I would highly recommend never upgrading to a .0, always wait for at least a .1 patch. I left some sleeps in the when I was debugging a while back, those are safe to remove assuming it works in your setup. I also noticed some variables weren’t quoted, I’m not a bash programmer so there’s probably some consistency issues that could be addressed if someone is OCD.

eos300v,

Thank you for taking the time ! This is a great resource

gadgetzombie, in Problem while trying to setup an instance

Might be more helpful to actually say in the title that it is Lemmy you’re trying to selfhost, this community isn’t specific to selfhosting Lemmy.

Samsy, in What should I use my RPi4 for?
  • Wireguard + wireguard-ui
  • Linkwarden
  • Filebrowser
  • Dockge
  • Trilium
  • Paperless-ngx
  • OCIS
  • AdGuard Home
  • Jellyfin
  • Rocket-Chat
  • Vaultwarden
  • Mailcow

That’s my actual mess.

mr_pip,
@mr_pip@discuss.tchncs.de avatar

Wait aren’t the system requirements for Mailcow crazy high? How can you run it + other software on a mere Pi? Also: do you have a static IP?

Samsy,

Yes, that’s correct, mailcow runs on a vps outside with a static IP, I missed that op only asks for RPI hosted.

Scipitie,

Thanks for sharing! The only thing I’m surprised to see in your list is paperless - how long does OCR take on a pi?

Samsy,

Idk, exactly I put near 500 pdfs in it, and after 3 days it was complete

huquad,

I wish you hadn’t posted this \s. Now I have so much more to play with on my server. Great software here!

AtariDump, (edited ) in Public DNS server with gui

Do. Not. Open. Port. 53. To. The. Internet.

Just Don’t.

This is a really bad idea.

If you’re trying to reach something on your network, VPN back in.

Gooey0210,

Or use encrypted dns 😕 it’s 2024, time to use encryption

AtariDump,

That wouldn’t help with an open resolver.

Gooey0210, (edited )

Use encryption, using vpns for such a trivial task is a “really bad idea”

There are many cases when somebody wants to have their dns public, maybe they want to share with their friends, family, community, audience (not everyone is a solo server user)

Also, it’s good to use your dns even before connecting to the vpn. Just use encryption, it’s safe and nice

Keeping 53 opened is not that bad, the only thing you will notice is an increased load on your server if somebody tried to ddos somebody’s server using your dns

P.S. Or as somebody mentioned below, use rate limiting. It’s described pretty well in some other comments. Not just “spooky internet port”

atzanteol, (edited )

Use a public dns provider. Cloudflare, route53, dyndns (are they still around?), etc. Cheap, reliable, no worries about joining a ddos by accident. Some services are better left to experts until you really know what you’re doing.

And if you do really know what you’re doing you’ll use a dns provider rather than host your own.

Gooey0210,

Cloudflare is not private… not sure if dyndns has even worse reputation than cloudflare

Some services are better left to experts until you really know what you’re doing.

DNS, for experts? 😂

You host your own dns, and don’t work with glowing services, this is the private way

atzanteol,

Host your own private DNS - yes, knock yourself out. I highly recommend it.

Public DNS? No - don’t do that.

There are two services homegamers should be extra cautious of and should likely leave alone - DNS and email. These protocols are rife with historic issues that affect everybody, not just the hosting system. A poorly configured DNS server can participate in a DDOS attack without being “hacked” specifically. A poorly configured mail server can be responsible for sending millions of spam emails.

For a homegamer you probably only need a single public DNS record anyway (with multiple CNAME if you want to do host based routing on a load balancer). You take on a lot of risk with almost zero benefit.

Gooey0210,

You don’t knock yourself out, it doesn’t look like you ever even tried it

See you when you start selfhosting stuff, or at least get interested

Also, knocking yourself out is not privacy, but anonymity 🤭

atzanteol,

Uh oh - my “nerd creds” are being questioned by a rando on the internet. 🤣

possiblylinux127,

How do I resolve my domain name?

billwashere,

Check out Tailscale.

ikidd, (edited )
@ikidd@lemmy.world avatar

From outside? Set up a Cloudflare account and point the NS from your registrar to it.

From inside? Set up unbound on a docker host and don’t open it to the internet. Use that one when you’re local and the normal public DNS when you’re outside. But everything I’m seeing in here makes me sure you shouldn’t even consider opening ports in your firewall to expose inside host services. Use a VPN when you’re roaming, and only use your DNS for local servers/hosts via that VPN. The only use for your outside domain name should be to point a single hostname to your outside IP address so you can use it for your VPN endpoint.

Use DNS challenges for LetsEncrypt cert requests and remove host entries from your Cloudflare after you get your cert.

Rootiest, (edited )
@Rootiest@lemmy.world avatar

I use a DNS server on my local network, and then I also use Tailscale.

I have my private DNS server configured in tailscale so whether on or off my local network everything uses my DNS server.

This way I don’t have to change any DNS settings no matter where I am and all my domains work properly.

And my phone always has DNS adblocking even on cell data or public Wi-Fi

The other advantage is you can configure the reverse proxy of some services to only accept connections originating from your tailscale network to effectively make them only privately accessible or behave differently when accessed from specific devices

AtariDump,

DynDNS

nik282000,
@nik282000@lemmy.ca avatar

I ran my ssh behind 53 for a while because it’s rarely blocked. A few bots even got it right and figured out it was ssh.

EncryptKeeper,

This is why the concept of running services until different ports than default isn’t a real security measure, it doesn’t actually take any effort to figure out what kind of service is running on a port.

Hexarei, in Why docker
@Hexarei@programming.dev avatar

Others have addressed the root and trust questions, so I thought I’d mention the “mess” question:

Even the messiest bowl of ravioli is easier to untangle than a bowl of spaghetti.

The mounts/networks/rules and such aren’t “mess”, they are isolation. They’re commoditization. They’re abstraction - Ways to tell whatever is running in the container what it wants to hear, so that you can treat the container as a “black box” that solves the problem you want solved.

Think of Docker containers less like pets and more like cattle, and it very quickly justifies a lot of that stuff because it makes the container disposable, even if the data it’s handling isn’t.

paws,
@paws@cyberpaws.lol avatar

I ended up using Docker to set up pict-rs and y’all are making me happy I did

  • All
  • Subscribed
  • Moderated
  • Favorites
  • selfhosted@lemmy.world
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 18878464 bytes) in /var/www/kbin/kbin/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php on line 171

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10502144 bytes) in /var/www/kbin/kbin/vendor/symfony/error-handler/Resources/views/logs.html.php on line 38