I was wondering if there was really a good reason for CloudFlare to be used? I understand Lemmy.ca has dedicated hardware in a datacenter. Seems odd to pipe all our data through a US company as we are in a trade war.

  • Shadow@lemmy.caM
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

    Yeah we’re at about 10mbit on a 50mbit commit off a 1 gig feed.

    Im starting to dislike nginx these days, varnish is nicer as a caching frontend. We were on ovh before, fuck that.

    If there was a good Canadian cdn I’d be all over it, but there isn’t.

    • GameGod@lemmy.ca
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month ago

      If I can ramble a bit more - forget the Anycast bit. If you run your own DNS server(s), you can just configure them to respond based on the geographic location of the requester. PowerDNS is pretty easy to set up for this. You could run your own DNS just for the image domain. You basically run PowerDNS authoritative server, set up your zones and the geoip stuff, then slap dnsdist in front of it to be publicly exposed. dnsdist has anti-DDoS features and loadbalancing in it, in case you need it down the road.

      Since it’s just for static images, you can have a higher TTL so you don’t need to worry about distributing the DNS servers. (ie. the DNS lookup might not be super fast since it could go across the country, but it doesn’t matter since that lookup is only going to happen every TTL period on each client, which can be high.)