The user Pad_Pors reports 504 Bad Gateway errors on their Discourse instance hosted on a t2-small AWS instance with 2GB of swap, particularly when users like or edit topics. They inquire whether the issue stems from insufficient server resources, Cloudflare, or installed plugins. Genyus clarifies that Cloudflare is unlikely the cause, as the 504 error indicates a failure to connect to the upstream server, and while plugins can affect performance, themes generally do not. Pad_Pors notes their plugin list is small and finds the error not to be due to high traffic. They ask where the 504 errors are logged and why some users experience them while others do not. They also share admin log warnings, questioning if these could be related. Ultimately, Pad_Pors resolves the issue by removing the nginx reverse proxy and using nginx within Docker, referencing a guide here.