help-circle
rss
Fresh Lemmy UI Fork - 502 Bad Gateway error
Hello again, -For the past 7 months, I’ve been building some new UI features (on Lemmy-UI 15.4). -I will manually add these features to a fresh fork of Lemmy-UI 16.7 (to offer them in a pull request). ** **THE SETUP and ERROR** 1. I made a fresh ansible install, on a fresh ubuntu 20.04 server - the Lemmy instance runs perfectly. 2. I made a fresh fork of the 16.7 Lemmy-UI. 3. I built a docker-image of that forked UI, and loaded it via docker-compose (here is my [docker-image.yml build file](https://privatebin.at/?5882ef055652c602#3gVWY9YzphzrkFNmFLK6KLxWhfR4Fqtx9idoCFrZhnGx) ). Now I am getting a “502 Bad Gateway - nginx” error (the site does not load). NGINX error log shows: ``` connect() failed (111: Connection refused) while connecting to upstream, client: 75.222.232.212, server: ggg.com, request: "GET / HTTP/2.0", upstream: "http://0.0.0.0:15153/", host: "ggg.com" ``` - Nginx config has not been modified (but here is the config anyway - [ggg.conf](https://privatebin.at/?a4ba45299811eda8#GJwMDhkY1GvB4MhX914MwjxHgA9zKXpSCfhNA4rtaRcM)) - Docker log is clean. ** **THE QUESTION** Is there an Environment Variable I must set to make a forked UI load? (to connect front-end and back-end) Here are the Env Vars I’ve tried (in various combinations/values): ``` lemmy-ui: image: ggg/ui2:latest ports: - "127.0.0.1:15153:1234" restart: always environment: - LEMMY_INTERNAL_HOST=lemmy:8536 - LEMMY_EXTERNAL_HOST=ggg.com - LEMMY_HTTPS=true - LEMMY_UI_HTTPS=true - LEMMY_UI_LEMMY_INTERNAL_HOST=lemmy:8536 - LEMMY_UI_LEMMY_EXTERNAL_HOST=ggg.com - LEMMY_UI_DISABLE_CSP=true # - LEMMY_UI_LEMMY_WS_HOST=lemmy:8536 # - LEMMY_UI_HOST=0.0.0.0:1234 ``` here is [the full docker-compose.yml](https://privatebin.at/?a00b49548bb76418#3dprkF35H671DFVfyRiGs5tY1FRrNXV9fnBK7ndxugF1) (only changed Env Vars) ** SUMMARY: -What could be causing this "502 Gateway" error on a fresh Lemmy UI fork? -Is there an Environment Variable I must set to run the forked UI? (to connect front-end and back-end) If you have an idea, I will very much appreciate it.
fedilink




In 5ish years I have never managed to get ublock origin to block ads on twitch.tv. Anyone else? Also anyone know an easy way to watch twitch without ads?
Across 3 computers and like 5 phones. ios, macOS, windows OS, ubuntu, mint, a few other linuxes, android. I used https://twitchls.com to watch without ads, but that doesn't work anymore?
fedilink