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
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
9 Comments
tifriis@sh.itjust.works · 5 pts · 1y
Not helping you but for your information: https://github.com/Xyphyn/photon/discussions/142
mitexleo@buddyverse.one · 2 pts · 1y
Thank you. I'm using docker though.
Xylight@lemm.ee · 4 pts · 1y
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 (eglemmy:8536)PUBLIC_SSR_ENABLED: enable this to allow server rendering which improves SEOPUBLIC_MIGRATE_COOKIE: this will automatically migrate lemmy-ui logins to photon.mitexleo@buddyverse.one · 1 pts · 1y
Where do I have to set the env variables? On the docker compose file similar to lemmy-ui?
mitexleo@buddyverse.one · 1 pts · 1y
Is everything alright here?
mitexleo@buddyverse.one · 1 pts · 1y
Getting error 502. Not sure what I'm doing wrong.
Xylight@lemdro.id · 1 pts · 1y
502 from photon itself or nginx? I think you need to change
photonat the top tolemmy-uimitexleo@buddyverse.one · 1 pts · 1y
From nginx. I've commented out lemmy-ui before running the compose file.
mitexleo@buddyverse.one · 1 pts · 1y
This is what I have in the log: