Using nginx and waiter with shinyproxy

Hello,

I have written a shiny application, and it has a loading part where I am using this package.

The app runs perfectly when deployed locally with shinyproxy in a container (on localhost:8080), however, once deployed to a server behind a nginx reverse proxy lots of files seem not to get to the client and the app is not functioning. In the console it claims it needs jquery files, etc. I get ERR_CONTENT_LENGTH_MISMATCH error.

I have added useForwardHeaders in my application.yml top level.

server:
useForwardHeaders: true

I am also using this suggested nginx setup, except for that I am using cloudflare for ssl.

Does anyone have any ideas what the issue might be?

Thanks

Ok, so it indeed was an nginx setup error.

What fixed the issue for me was adding proxy_buffering off; in the location block.

1 Like