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.

-9 points

Pointless but cool :)

permalink
report
reply
8 points

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.

permalink
report
parent
reply
4 points

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

permalink
report
parent
reply
2 points

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.

permalink
report
parent
reply
4 points

Why pointless?

permalink
report
parent
reply
9 points

It is cool and it is not pointless.

permalink
report
parent
reply
3 points

Use Tailscale vpn if you want access from outside your home network. It’s super easy to set up, all you do is install Tailscale on the server and client, and login.

permalink
report
reply
8 points

FYI, this will only work when you are connected to your local network! If you want external access you can configure a VPN for external access (WireGuard) or do some port forwarding and register a domain name and use a reverse proxy (caddy) to serve the app.

permalink
report
reply
4 points

Well no. A proper PWA will work while offline. As long as it can talk to the instance, it should work fine.

permalink
report
parent
reply
2 points

Setting up something simple like Tailscale should also work to access local network stuff from different networks.

permalink
report
parent
reply
3 points

I was going to recommend Tailscale. Such a great lil app

permalink
report
parent
reply
6 points

Correct! However I’d like to test it with Cloudflare tunnel

permalink
report
parent
reply
2 points

I’ve done a similar thing, though I’m not sure what the point of CUSTOM_LEMMY_SERVERS is.

permalink
report
reply
1 point
*

CUSTOM_LEMMY_SERVERS (optional) e.g. lemmy.world,lemmy.ml,sh.itjust.works - a comma separated list of suggested servers. The first will be used as default view for logged out users. You can specify only one if you want.

permalink
report
parent
reply
2 points

It just controls the list of server URLs you see by default.

permalink
report
parent
reply
4 points

What happens when a new update is available? Do we need to run the docker again? (Noob here :( )

permalink
report
reply
3 points

If you’re using the tag latest then you would need to re-pull the image and restart your docker container.

permalink
report
parent
reply

Selfhosted

!selfhosted@lemmy.world

Create post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

Community stats

  • 5K

    Monthly active users

  • 3.6K

    Posts

  • 81K

    Comments