5

I'm trying to host a lemmy instance but I'm running into a problem. I managed to get past the missing arm images but even having lemmy working, up and running I can't get it to log-in - wss complains.

I asked on github (https://github.com/LemmyNet/lemmy/issues/3043) but I think maybe here I'll get more help :-)

top 1 comments
sorted by: hot top controversial new old
[-] tet42@ka.tet42.org 1 points 2 years ago* (last edited 2 years ago)

I'm assuming you're using docker.

Make sure you have websockets support turned on.

You might also try to add custom locations under NPM. I made those changes at the same time I made some changes to the "advanced" tab of NPM. I'm not sure which thing fixed it, or maybe it required both. Try this, and if it still doesn't work, then add the advanced tab settings farther down this reply.

You will need custom locations in your NPM proxy host settings for Lemmy for the following paths.

/api

/feeds

/pictrs

/nodeinfo

They should point to the container that is running the lemmy application, not the UI one, just the lemmy one and to port 8536. If your NPM is not on the same docker network as lemmy, you will need to expose port 8536 on the lemmy container and add it to the lemmyexternalproxy network.

If those changes don't bring you joy, try also adding the following lines to the "advanced" tab of your NPM proxy host settings for Lemmy.

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forwarded-For $remote_addr;

proxy_set_header X-Forwarded-Host $remote_addr;

real_ip_header X-Real-IP;

real_ip_recursive on;

If anything I have said is confusing to you, please reach out via DM and I'll try to help.

load more comments
view more: next ›
this post was submitted on 13 Jun 2023
5 points (100.0% liked)

Selfhosted

40749 readers
455 users here now

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!

founded 2 years ago
MODERATORS