selfhosted

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

Appoxo, in How often do you back up?
@Appoxo@lemmy.dbzer0.com avatar

My PC: Every day and when it is online
My drives the backups go to: Once a week.

69420,

Wait, so you backup your backups? Why not just 2 backups of the same thing?

Appoxo,
@Appoxo@lemmy.dbzer0.com avatar

Limitation of hardware.
It is essentially just a file copy.

originalucifer, in what if your cloud=provider gets hacked ?
@originalucifer@moist.catsweat.com avatar

haha

"the cloud" does not change the fact that if you data does not reside in 2 physical locations you do not have a backup.

so yes, standard practices that have existed... well, since the beginning, still apply.

kristoff,

Well, the issue here is that your backup may be physically in a different location (which you can ask to host your S3 backup storage in a different datacenter then the VMs), if the servers themselfs on which the service (VMs or S3) is hosted is managed by the same technical entity, then a ransomware attack on that company can affect both services.

So, get S3 storage for your backups from a completely different company?

I just wonder to what degree this will impact the bandwidth-usage of your VM if -say- you do a complete backup of your every day to a host that will be comsidered as “of-premises”

ErwinLottemann,

if you backup your vm data to the same provider as you run your vm on you don’t have an ‘off-site’-backup, which is one criteria of the 3-2-1 backup rule.

stephaaaaan, in PSA: The Docker Snap package on Ubuntu sucks.
@stephaaaaan@feddit.de avatar

Did you see this already? :)

hperrin,

That’s a start, but I need access to both /home and /data.

b1g_bake, in Running immich, HA and Frigate on a RPi4 with Coral or on a HP Prodesk 700 g4 (Intel 8th gen)
@b1g_bake@sh.itjust.works avatar

I personally graduated from a Rpi3b to an Intel NUC years ago and never looked back. Real RAM slots and Storage options internally and you can get as nice a processor as your budget allows. So my vote is to move to the SFF PC and let your Pi stick around for other projects.

sylverstream,

Thanks for your insights. Thought about a NUC as well, but AFAIK it doesn’t have pcie slots? So I won’t be able to install eg a graphics card or pcie coral?

b1g_bake,
@b1g_bake@sh.itjust.works avatar

I wouldn’t go NUC if you need a PCIe slot. The HP you were talking about would fit the bill though.

I believe they make a Coral that fits where the wifi chip goes too. As long as you are ok ditching the wifi/bt functionality for a TPU. For a server doing image processing that’s almost a no-brainer to me.

sylverstream,

Interesting re the wifi chip, as all posts I’ve found said it only works for a wifi card. Do you have a source for that?

Yeah, no wifi is no problem. It’ll be connected via cable

b1g_bake,
@b1g_bake@sh.itjust.works avatar

Oh I’m not sure if it actually works. I thought they just made one to fit that slot

three,

Three versions that I know of have it but you’re right it’s not common. www.intel.com/content/www/us/en/…/intel-nuc.html

Father_Redbeard, in worth selfhosting immich or similar? what about backups?
@Father_Redbeard@lemmy.ml avatar

I have my Immich library backed up to Backblaze B2 via Duplicacy. That job runs nightly. I also have a secondary sync to Nextcloud running on another server. That said, I need another off prem backup and will likely run a monthly job to my parents house either via manually copying to an external disk then taking it over or setting up a Pi or other low power server and a VPN to do it remotely.

palitu,

So you just mount the immich folder in the duplicate container? Or run it native?

Father_Redbeard,
@Father_Redbeard@lemmy.ml avatar

Immich and Duplicacy both run on my unraid server. Duplicacy just watches the Immich pics folder and backs that up nightly.

its_me_gb, (edited ) in How do you monitor your servers / VPS:es?

Prometheus for metrics

Loki for logs

Grafana for dashboards.

I use node exporter for host metrics (Proxmox/VMs/SFFs/RaspPis/Router) and a number of other *exporters:

  • exportarr
  • plex-exporter
  • unifi-exporter
  • bitcoin node exporter

I use the OpenTelemetry collector to collect some of the above metrics, rather than Prometheus itself, as well as docker logs and other log files before shipping them to Prometheus/Loki.

Oh, I also scrape metrics from my Traefik containers using OTEL as well.

lud,

Have you tried the proxmox exporter? I have tried it briefly for a grafana lab and it seemed pretty good.

github.com/…/prometheus-pve-exporter

its_me_gb,

I haven’t, but it looks like I’ve got another exporter to install and dashboard to create 😁

lud,

If you want to run the exporter without docker (like I did) and you get problems with installing the exporter try using this guide: github.com/…/PVE-Exporter-on-Proxmox-VE-Node-in-a…

namelivia,

What does having OpenTelemetry improve? I have a setup similar to yours but data goes from Prometheus to Grafana and I never thought I would need anything else.

its_me_gb,

Not a whole lot to be honest. But I work with OpenTelemetry everyday for my day job, so it was a little exercise for me.

Though, OTEL does have some advantages in that It is a vendor agnostic collection tool. allowing you to use multiple different collection methods and switch out your backend easily if you wish.

ConstantPain, in Self-hosted or personal email solutions?

I use Google Domains to create custom email addresses on the fly that syphons to my personal Gmail address.

If I subscribe to a service, say Netflix, I just put netflix@mydomain.com and it automagically exists and redirects to my Gmail.

savedbythezsh,
SeeJayEmm, in How do you monitor your servers / VPS:es?
@SeeJayEmm@lemmy.procrastinati.org avatar

I’m running checkmk for monitoring but that won’t help you with detection of unwanted logins. For security I’m running crowded.

peter,
@peter@feddit.uk avatar

What’s crowded? I am having trouble searching for it because of its name

archy,

crowdsec, pretty sure what’s meant

peter,
@peter@feddit.uk avatar

Ah thank you

avidamoeba, (edited ) in How do you monitor your servers / VPS:es?
@avidamoeba@lemmy.ca avatar

Prometheus.

It’s open source, it’s easy to setup, its agents are available for nearly anything including OpenWrt, it can serve the simplest use case of “is it down” as well as much more complicated ones that stem from its ability to collect data over time.

Personally I’m monitoring:

  • Is it up?
  • Is the storage array healthy?
  • Are the services I care about running?

I used to run it ephemerallly - wiping data on restart. Recently started persisting its data so I can see data over the longer run.

surewhynotlem,

What do you use to see the data? Prometheus itself is easy to set up, but getting to the data seemed complicated.

lud,

You can use grafana to visualise the data.

Grafana isn’t too hard to use.

PropaGandalf, (edited ) in In search for free domain I got one but some questions

For most use cases you can host everything on I2P.

  • You can create unlimited domains for free
  • Its censorship resistant There are some caveats though:
  • The network is rather slow (but not too slow in my opinion)
  • You need to configure your router or you device to access the I2P net
itsaj26744,
@itsaj26744@programming.dev avatar

Like I want domain to host fediverse server?

PropaGandalf, (edited )

This one will be a bit trickier because of federation. Maybe it is even impossible. But for git hosting, website hosting, email, your cloud, various chats software or torrents it should just work.

itsaj26744,
@itsaj26744@programming.dev avatar

Email will work?

Most ppl use clearnet !!

PropaGandalf,

Your smtp will still be able to connect to other services afaik. Its just about the hosted website.

itsaj26744,
@itsaj26744@programming.dev avatar

Not updated from 2020 do it work properly also no webapp.

PropaGandalf,

What do you mean?

itsaj26744,
@itsaj26744@programming.dev avatar

It do not have any webapp Like nextcloud bookarks or wallabag.

PropaGandalf,

I2P isn’t a service if you mean that. It is a whole new network just like the regular clearnet or the tor network.

itsaj26744,
@itsaj26744@programming.dev avatar

Hmm, Actually I was replying to another comment. Apology.

itsaj26744,
@itsaj26744@programming.dev avatar

Ohk, will try it.

vzq, (edited ) in Why docker

How is this meaningfully different than using Deb packages? Or building from source without inspecting the build commands? Or even just building from source without auditing the source?

In the end docker files are just instructions for running software to set up other software. Just like every other single shell script or config file in existence since the mid seventies.

scrubbles,
@scrubbles@poptalk.scrubbles.tech avatar

Your first sentence proves that it’s different. The developer needs to know it’s going to be a Deb package. What about rpm? What about if it’s going to run on mac? Windows? That means they’ll have to change how they develop to think about all of these different platforms. Oh you run windows - well windows doesn’t have openssl, so we need to do this vs that.

I’d recommend reading up on docker and containerization. It is not a script for setting up software. If that’s what you’re thought is then you really don’t understand containerization and I recommend taking some learnings on it. Like it or not it’s here, and if you’re doing any dev/ops work professionally you will be left behind for not understanding it.

vzq,

Apparently I was unclear, I was referring to the security implications of using different manifestations of other people’s code. Those are rather similar.

I’d recommend reading up on docker and containerization. It is not a script for setting up software.

I was referring specifically to docker files. Those are almost to the letter scripts for setting up software.

if that’s what you’re thought is then you really don’t understand containerization and I recommend taking some learnings on it.

I find your attitude not just uncharitable, but also rude.

scrubbles,
@scrubbles@poptalk.scrubbles.tech avatar

and I find misinformation about topics like this also to be rude. It’s perfectly fine if you don’t understand something, but what I don’t like is you going out of your way to dissuade people from using a product when I don’t think you understand the core concepts of it. If you have valid criticisms like security of docker then that’s a different conversation about securing containers, but it’s hard to take them as valid criticisms if the criticism is based on a fundamental misunderstanding of the product.

I don’t think anyone I have ever talked to professionally or read about docker would ever describe a dockerfile as “scripts for setting up software”. It is much more nuanced then that.

So yes, I’m a bit rude about it. I do this professionally and I’m very tired of people who don’t understand containerization explain to me how containerization sucks.

vzq,

Everything I wrote is rigorously correct, if a bit tongue in cheek.

Go play with your Dunning Kruger somewhere else.

hedgehog,

I don’t think you understood the context of the comment you replied to. As a reply to “Here are all these drawbacks to Docker vs hosting on bare metal,” it makes perfect sense to point out that the risks are there regardless.

Unless I misread your comment and you’re suggesting that you think devs not having to deal with OS-specific code is a disadvantage of Docker. Or maybe you meant your second paragraph to be directed at OP?

bdonvr, (edited ) in Self-hosted or personal email solutions?

Use Cloudflare or PorkBun.com for cheap, no bullshit domains. As for the email host, self hosting not recommended. It’s a long battle to be not blocked by every other provider.

I recommend purelymail.com - no cost to add (even multiple!) custom domains, unlimited users, only pay for mail usage and storage. Go for advanced pricing until it starts costing you more than $10/yr. (Which it shouldn’t if it’s just you. Seriously this thing is cheap!) I just passed my one year anniversary with PurelyMail, and have spent $6 so far. This is my most expensive month, 85¢. And that’s only because I host a public Lemmy instance (small) and we had a few hundred spam signups which sends an email each time.

https://thelemmy.club/pictrs/image/5b7bd21e-1301-4186-9a9f-8821108ea519.png

This will give you a total yearly price WAY under what Google or Microsoft will give you. Google is like, $7.20/user/month.

And if for some reason that service goes down one day, as long as you still have a mail client with your email stored in it you should be able to just switch providers and import your emails from your client. Make some backups.

rar,

I was very tempted to go for this one, but couldn’t find info on whether this was a one-man operation or if there are any disaster recovery plans. Sounds cruel, but if that one single guy my email depends on gets hit by a bus…

bdonvr,

It is. But as said, for personal email what’s the huge risk? You find a new provider, transfer your DNS records, and upload your old emails.

Make some backups of your emails, you should be anyway.

But they have a specific FAQ for this: purelymail.com/docs/companyPolicy#bus

rar,

Makes sense. I’m happy with my current provider but purelymail is a strong candidate for if I’m out of options.

lemmyvore, (edited )

For anybody interested in more choices for volume-based providers like PurelyMail (with tiers based on storage and emails sent/received but who otherwise allow unlimited domains/mailboxes/aliases) there’s also MXRoute (US) and Migadu (Swiss/EU).

These providers don’t usually make sense for a single mailbox (although some of them have a low entry tier for this purpose) but can be extremely cost-efficient if you need 2 or more mailboxes/domains.

Dehydrated, in How often do you back up?

Never

werefreeatlast,

I back up every morning to get to work and every afternoon to get back home lol

zaphod, (edited ) in Best Way To Mount A Directory on Boot
@zaphod@lemmy.ca avatar

Assuming systemd, create a file like


<span style="color:#323232;">/etc/systemd/system/dir-to-mount.mount
</span>

And then configure it per the systemd docs:

www.freedesktop.org/…/systemd.mount.html

Then modify the docker unit file to have a dependency on the mount unit so it’s guaranteed to be up before docker starts.

sabreW4K3,
@sabreW4K3@lemmy.tf avatar

Is this method superior to fstab?

zaphod, (edited )
@zaphod@lemmy.ca avatar

It has the benefit that the container can’t start before the mount point is up without any additional scripts or kludges, so no race conditions or surprise behaviour. Using fstab can’t provide that guarantee. The other option is Autofs but it’s messier to configure and may not ship out of the box on modern distros.

Atemu,
@Atemu@lemmy.ml avatar

I’ll let you in on a little secret: Fstab gets converted to mount units anyways.

roofuskit, in Stalwart v0.5.0
@roofuskit@lemmy.world avatar

Very interested in this as Gmail is one of my last Google cords to cut. But it doesn’t solve the issue of trying to host it from a non-commercial Internet connection. Last I remember most ISPs won’t let you open the ports required to run an email service on a home connection. Anyone have modern experience with that?

AtariDump,

Most non-business Internet service in the IS has email ports blocked. They don’t open unless you switch to business class Internet and that’s $$$

roofuskit,
@roofuskit@lemmy.world avatar

Thanks for confirming. So pay for a vps to run this on, or just pay an email provider.

AtariDump, (edited )

If the VPS allows email ports to be open.

Then deal with your email going to spam most of the time because you’re domain/IP is so new and not “warmed up” that email systems think it’s all spam.

roofuskit,
@roofuskit@lemmy.world avatar

Yeah, it seems like the latter option is the obvious answer. It’s an awful lot of work you still have to pay for. I’d rather just pay someone to offer me secure email and not harvest my information.

Lichtblitz, (edited )

In my experience, this is nothing more than an urban legend at this point. There are great standards, like DMARC, DKIM, SPF, proper reverse DNS and more, that are much more reliable and are actually used by major mail servers. Pick a free service that scans the publicly visible parts of your email server and one that accepts an email that you send to them and generates a report. Make sure all checks are green. After an initial day of two of getting it right, I’ve never had trouble with any provider accepting mail and the ongoing maintenance is very low.

Milage may vary with an unknown domain and large email volumes or suspicious contents, though.

taladar,

There are literally RBLs in use by many major mail providers that just contain all dynamic IPs. There are others that block entire subnets used by VPSs at certain hosters. In neither of those you can remove your IP yourself (unlike the ones that list individual IPs because of that IP’s reputation).

Lichtblitz, (edited )

Weird, I’ve never had problems over the past 15 years or so and I’ve been using VPS servers exclusively. Maybe my providers were reputable enough.

I realize my evidence is only anecdotal, but that’s why I started “in my experience”. Also, common blacklists are checked by the services I mentioned.

Chobbes,

For what it’s worth I also haven’t had any problems. Maybe we’re just lucky, though.

victorz,

That’s insane to me. How is that a free and open Internet? Should be illegal.

AtariDump,

Too many people get malware that setup an email server and start sending out spam/phishing emails.

victorz,

That’s interesting. Is it easily preventable?

AtariDump,

Yes.

ISPs block email ports on residential connections to prevent this.

victorz,

I meant on the part of the host. Would it be easily preventable on the server if the ports weren’t blocked by the ISP?

AtariDump,

Not for the average person who pays for a home (vs business) internet connection.

victorz,

That’s a shame.

AtariDump,

Why?

I can count on no hands the amount of people I know who want to host their own email server on a residential connection (and that includes myself).

victorz,

Very anecdotal. 🤷‍♂️

AtariDump,
victorz, (edited )

It’s not a shame because of the amount of people we know, or how many people there are in total, that want to self-host email. It’s about the fact that it’s so difficult to set up, and hard to secure. I just wish it were simpler and more secure by default so that more people could roll their own and break free from ad-ridden and privacy-invading email services. 👍

AtariDump,

Makes sense.

jagoan,

Gmail to MXroute when Google threatened to pull the grandfathered free Gmail custom domain thing. Got their lifetime plan, easy enough to configure so outgoing mails don’t get marked as spam. However, the major downside is it’s still using Spam Assassin as spam filter.

nutbutter,

I moved from Gmail to ProtonMail, then to Mailbox.org. Ypu can set up a mailserver on your home server, but you would need a VPS that would forward the traffic to and from your home server without you needing to open any ports. This guide can help you with TLS passthrough.

But setting up your own mailserver is a big hassle. Just pay a trusted provider and keep your inbox, and preferably all emails, encrypted with GPG.

victorz,

What made you switch from Proton to Mailbox, if you don’t mind sharing?

nutbutter,

I was paying $7/m for their mail, VPN and drive services. One of my major reasons to switch was their lack of linux support. They claim that it is hard to find Linux developers. Second reason was their drive’s download and upload speeds were terrible, from where I am sitting. Their VPN service is great. I always got great speeds, but their linux apps have always been terrible. Their mail service is also great, but I would like more control over it, like Mailbox.org. on Mailbox, I can encrypt my inbox using a different key, while also having the SMTP submission feature. I really ned that to integrate emails with my websites and services. Mailbox can also encrypt their cloud drive with our key, while also providing WebDAV support (how cool is that). Their mail app on android is open-source but is not available on f-droid. And the apk they provide on their website neither has a notification functionality, nor does it auto-update. Another reason was that I was limited to 3 custom domains, unless I buy their business plan. Mailbox has no such limit.

One final reason was that I did not want to keep all my apples in one basket. So, for mail, I am using mailbox, for storage, I am using a personal nextcloud and a Hetzner managed nextcloud, for VPN, I started using mullvad, but their speeds are terrible and connections are unreliable. For passwords I am using self-hosted vaultwarden.

There are a few more reasons that I do not remember, now. Proton is great, I still trust them. But these small things really go a long way.

victorz,

Thank you for that detailed reply. You have far greater needs than I do. 😊

It would be cool to do all these things and self-host. One day I’ll get there, in life.

ssdfsdf3488sd,

That’s pretty much exactly my story except I went with fastmail.com, mullvad for vpn (you really need to test with some script to find your best exit nodes I forget which one I used ages ago but it found me a couple of nodes about 1000 kms away from my location and in a different country that I can do nearly a gig through routinely… Maybe it was this script? github.com/bastiandoetsch/mullvad-best-server) . I went with pcloud for a bit but tailscale and now currently netbird make it kind of irrelevant since its’ so easy to get all my devices able to communicate back to my house file server. I want to like hetzner so bad but every time I try it the latency to north america just kills me and the north american offering was really far away and undeveloped last time Itried it

nutbutter,

For me the issue with Mullvad is like this… I connect to a server, I get good speeds, but after an hour or two, I get stuck at 2-3mbps. This issue gets resolved when I reconnect, even to the same server. Also, I like using OpenVPN over TCP, but their speeds, in Mullvad’s case, are terrible for all exit nodes.

It also may be the case that my ISP is deliberately ruining the IPv4 routes because I am connecting to a VPN for privacy.

ssdfsdf3488sd,

Nevee saw that on wireguard once i foind the better connections for my location, weird

  • 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 20975616 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 4210688 bytes) in /var/www/kbin/kbin/vendor/symfony/error-handler/Resources/views/logs.html.php on line 25