this post was submitted on 09 Oct 2024
9 points (90.9% liked)

Photon

752 readers
36 users here now

Photon for Lemmy

A client for the fediverse designed to be intuitive, fast, and sleek.

This community is a place to ask questions, report bugs, check on the latest updates, or share your experiences with Photon!

You can contact me at @Xylight@lemdro.id.

Rules

  1. Posts must be related to Photon (in any way)
  2. Don't be mean
  3. If your post is a bug report, please preface the title with [solved] if it's been fixed.

founded 2 years ago
MODERATORS
9
Replace lemmy-ui (buddyverse.one)
submitted 8 months ago* (last edited 8 months ago) by mitexleo@buddyverse.one to c/photon@lemdro.id
 

Hi,

I want to replace lemmy-ui with photon. How can I actually do this? Do I need to just install it using docker and reverse proxy to the port? Is there any docker compose method? Where can I set the environment variables?

TIA

top 9 comments
sorted by: hot top controversial new old
[–] tifriis@sh.itjust.works 5 points 8 months ago (1 children)
[–] mitexleo@buddyverse.one 2 points 8 months ago

Thank you. I'm using docker though.

[–] Xylight@lemm.ee 4 points 8 months ago (1 children)

You should be able to just replace the lemmy-ui image with the photon image, but you'll need to set a few env variables

PUBLIC_INSTANCE_URL: the domain your Lemmy instance is accessed from. (like lemmy.world)

PUBLIC_INTERNAL_INSTANCE: the url and port for the internal server to access (eg lemmy:8536)

PUBLIC_SSR_ENABLED: enable this to allow server rendering which improves SEO

PUBLIC_MIGRATE_COOKIE: this will automatically migrate lemmy-ui logins to photon.

[–] mitexleo@buddyverse.one 1 points 8 months ago (1 children)

Where do I have to set the env variables? On the docker compose file similar to lemmy-ui?

[–] mitexleo@buddyverse.one 1 points 8 months ago (1 children)

Is everything alright here?

[–] mitexleo@buddyverse.one 1 points 8 months ago (1 children)

Getting error 502. Not sure what I'm doing wrong.

[–] Xylight@lemdro.id 1 points 8 months ago (2 children)

502 from photon itself or nginx? I think you need to change photon at the top to lemmy-ui

[–] mitexleo@buddyverse.one 1 points 8 months ago

From nginx. I've commented out lemmy-ui before running the compose file.

[–] mitexleo@buddyverse.one 1 points 8 months ago

This is what I have in the log:

2024/10/13 01:30:29 [error] 3854559#3854559: *1291647 connect() failed (111: Connection refused) while connecting to upstream, client: 18.118.255.176, server: buddyverse.one, request: "GET /post/4126/15889 HTTP/2.0", upstream: "http://0.0.0.0:10633/post/4126/15889", host: "buddyverse.one"
2024/10/13 01:30:34 [error] 3854559#3854559: *1291662 connect() failed (111: Connection refused) while connecting to upstream, client: 159.69.54.68, server: buddyverse.one, request: "POST /inbox HTTP/1.1", upstream: "http://0.0.0.0:10633/inbox", host: "buddyverse.one"                                          2024/10/13 01:30:34 [error] 3854559#3854559: *1291664 connect(
) failed (111: Connection refused) while connecting to upstream, client: 3.133.133.233, server: buddyverse.one, request: "GET /post/2893/14546 HTTP/2.0", upstream: "http://0.0.0.0:10633/post/2893/14546", host: "buddyverse.one"                      2024/10/13 01:30:35 [error] 3854559#3854559: *1291668 connect() failed (111: Connection refused) while connecting to upstream, client: 159.69.49.255, server: buddyverse.one, request: "POST /inbox HTTP/1.1", upstream: "http://0.0.0.0:10633/inbox", host: "buddyverse.one"