bookwyrm-social / bookwyrm

Social reading and reviewing, decentralized with ActivityPub
http://joinbookwyrm.com/
Other
2.17k stars 255 forks source link

Potential error or missing explanation in nginx production config? #3377

Open theweekendgeek opened 3 weeks ago

theweekendgeek commented 3 weeks ago

Hi :)

I just set up a bookwyrm instance. I'm running with docker and caddy as a reverse proxy. It all went smooth until I finally started the containers. I got 502 errors from nginx. Eventually, I saw that nginx tried to connect to port 80 of the web service. When I changed the line proxy_pass http://web; to proxy_pass http://web:8000; in the default.conf it all worked. I'm not sure if this is really a bug or something that only affects non nginx reverse proxies, but i thought I'd let you know.

redactedsystem commented 1 week ago

thank you, this helped me when i was stuck