this post was submitted on 05 Jun 2023
4 points (100.0% liked)
Lemmy Support
4650 readers
1 users here now
Support / questions about Lemmy.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I'm not sure if I should make a new post or keep this in a single thread, anyway, I've managed to get the front page to load, but can't get any farther.
I used the instructions from @[email protected]'s branch, particularly their nginx config.
I'm running the whole docker-compose setup behind my own nginx reverse proxy, which is set to proxy requests to the docker nginx (and also handles SSL). I modified the docker-compose.yml to bind the host port on
9001
, then my main nginx config looks like this:The front page loads, but pretty much anything else I do results in an endless spinner. The only possible problem I see is this in the docker terminal output:
Your reverse proxy is doing websockets incorrectly, there's some bogosity in the spec for websockets that makes them single hop and the proxy needs to propagate the upgrade request. Search for "nginx reverse proxy websocket", e.g. https://www.nginx.com/blog/websocket-nginx/
Thanks, that's the missing piece. Ironically I am a software engineer in my day job, but not the right kind of software engineer. It's fun to broaden my horizons though. I copied the proxy settings from the @[email protected]'s nginx.conf with the right edits for the hostname into my reverse proxy config and now everything appears to be working!
Glad it's working for you!