How I self hosted wefwef on macOS with Docker - eviltoast

I posted this as a comment in the wefwef community but thought it might also be relevant here. If anyone is interested in self hosting wefwef this is how I did it on macOS:

Start by installing Docker desktop

Open Terminal and type in:

docker pull ghcr.io/aeharding/wefwef:latest

Then, you need to use a Docker run command like below to get things started. In this example, I put my local IP in as “192.168.1.2” but you’ll need to adjust that value to whatever your machine’s IP is.

docker run --rm -d -p 192.168.1.2:5314:5314 -e "CUSTOM_LEMMY_SERVERS=lemmy.world,sh.itjust.works,lemmy.ml" ghcr.io/aeharding/wefwef:latest

At that point, I went to my iPhone, opened Safari and went to 192.168.1.2:5314 and boom, there’s wefwef. Install this as PWA and name it (local) or something to differentiate it from the normal wefwef and you’re good to go.

Disclaimer: I’m brand new to all of this so I’m sure this isn’t the best way. But it got me started, so I wanted to share.

  • PlutoniumAcid@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    1
    ·
    1 year ago

    Why is that pointless? Does it not take load off the server?

    Also of course it educates OP on this cool tech, but that’s not what I am asking.

    • mattes@lemmy.kussi.me
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      Not really. It’s a PWA so as long as you „install it“, it should talk to wefwef servers at all.

      • MiddleKnight@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        I am pretty sure I read that all traffic is proxied through wefwef servers. It has to be this way due to lemmys (lack of) CORS settings. I think there is some work towards changing this.