How do I adjust the Gateway Timeout for Syncing?

Operating system

macOS

Joplin version

3.2.13

Sync target

Joplin Server

What issue do you have?

Looks like this has been an issue for folks in the past and it's fixed with an update the optimizes things, but I'm having an issue where syncing files fails with "504 Gateway Timeout" in two situations:

Situation 1:

On the first sync of a new device, in this case on MacOS, only some of the files sync and there is a ton of spam of this gateway timeout.

Situation 2:

With large files, over 30MB or so, it never uploads them to the server and instead fails with this message.

I cant find any settings in the client or on the Joplin Server that allows me to increase this timeout. Any workarounds?

There's no timeout on Joplin Server side. You probably need to tweak your reverse proxy configuration, and also makes sure it allows uploading large files