DevOps as a profession and software development for fun. Admin of lemmy.nrd.li and akkoma.nrd.li.

Filibuster vigilantly.

  • 0 Posts
  • 51 Comments
Joined 1 year ago
cake
Cake day: June 10th, 2023

help-circle





  • Asklemmy isn’t really a place to ask about lemmy, it’s for asking general questions to users of lemmy, jut like you wouldn’t ask for Reddit support in /r/askreddit.

    Regardless, this question gets asked and talked about in the !selfhosted@lemmy.world community fairly often, here is a (slightly edited) comment I made a while back.

    You will need a domain name, you can buy one from a registrar such as hover or namecheap (for the love of all that you consider holy do not use godaddy).

    You will need a way to expose the server that you set up via port forwarding or similar on your network.

    You will need to set up DNS records on the domain you buy to point to your home IP. You may want to figure out a different way to avoid just handing that information out, cloudflare can help with that. You will want to make sure the DNS records get automatically updated if your IP address changes, which is not uncommon for residential ISPs.

    You will need to figure out how to get an SSL certificate, Let’s Encrypt will issue them for free, cloudflare gives you one if you use them as a reverse proxy.

    Some of this would likely be easier to do on a cloud provider like digitalocean or linode and could be done reasonably cheaply.

    These are all common things for setting up any website, so lemmy docs won’t cover them. In addition to those (this answer was just addressing “how to get a URL”) you will need to install and configure lemmy, lemmy-ui, postgres, and pictrs somewhere (the join-lemmy docs cover this well).

    If you want your instance to send emails you will have to figure out how you want to do that (too many options to cover in this answer).

    When 0.18.1 gets released if you want captcha you’ll probably have to figure out an mCaptcha provider or set that up yourself.

    Not to mention thinking about backups, high availability, etc, etc.

    As far as hardware to host on you could get away with like ~$10/mo on most any cloud provider, run it on a Mini-PC in your closet, etc. My instance uses 1-2 GB of RAM, ~13GB of disk (and growing a few hundred MB per day), and ~30% of a CPU (an old i5).

    Best of luck.


    1. Up to you, I would just avoid big instances like .world or .ml. People do congregate on big instances in most of the fediverse, so IDK that “professional” enters into it. It’s not as if you’re running a law firm on a @hotmail email address. I like hosting stuff for myself, so I am running my own instance.
    2. For yourself you could get away with spending around $5-$10/mo, plus ~$10/yr for the domain name. More users/load would need more resources, .world is spending >$150/mo for the server(s) alone, and that will only grow as the instance grows.
    3. Big thing would be site-wide moderation and managing federation. Dealing with reports, illegal content, communities that break server rules, users that are harassing others, etc. If you slack too much on that (or have overly lax policies) you may end up defederated by instances. Making the decision to defederate other instances. Etc.
    4. Entirely gone.
    5. Mostly just changes what you’d see on local. Federation can be wonky/slow at times, but that is true of federation between big instances as well, it’s just something you have to get used to when using Lemmy.


    1. Yes.
    2. Yes.
    3. You can do it quite cheaply. It is feasible to run on a ~$5/mo VPS (Vultr, Linode, DigitalOcean, Scaleway, etc) if you are willing to suffer potential downtime if things go wrong on that one machine. Eventually you might run out of image storage, but that can offloaded to any object storage provider such as those offered by the cloud hosts I listed or ones run by e.g. AWS (S3), Wasabi, Cloudflare (R2), etc.
    4. If you know nothing about servers, linux, docker, postgres, reverse proxies, netwroking, http, etc. then it may not be worth it to you. I like the idea of having complete control over what servers I federate with. I like the idea of having a built-in archive of everything I read and write on Lemmy. Running an instance is of minimal cost to me because I already run software (including postgres, the database Lemmy uses as well as my own email server) for myself so it is low impact to add just one more service. Ultimately there are so many variables that you have to decide it for yourself.

    If you want some general advice on how to set things up or certain things you need to make sure are done right so your instance works feel free to reach out. If you want to check out a smaller instance (I am the only regular user, but have a few friends that use my instance from time to time) feel free to sign up for mine to see what it might be like.


  • Exactly, your instance stores what you post (local) on it and what gets federated to it (cache, basically). You search those local and cached things. To do it some other way would basically man that either all instances somehow discover each other and send everything to each other all the time or your instance somehow discovers and searches all other instances when you do a search.

    There has been talk about something that should make things better as far as “couldnt_find_community” more or less auto-searching a remote community when you go to a /c/community@example.com sort of link so the experience is less jarring and doesn’t require you to know you have to do a search.









  • terribleplan@lemmy.nrd.litoAsklemmy@lemmy.mlDeleted
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    Or if you just don’t want to give your “proper” phone number out to every single company out there to add to their spam list, sell on to anyone else, and give away for free every time they have a data breach. I use GV out of necessity for blocking spam calls.


  • terribleplan@lemmy.nrd.litoAsklemmy@lemmy.mlDeleted
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Which is why (much to my chagrin as someone who has only given out their GV number for 10+ years) many companies are blocking numbers identified as VOIP even if they are capable of doing SMS/MMS, and some even go so far as to block prepaid phones. This was a component of that whole Overwatch 2 phone number controversy: not only were they requiring a phone number to play despite people’s battle.net accounts being years old, but they were also preventing some people from using their completely legitimate phone numbers.