There is a common pattern I’ve seen, in guides about Ruby on Rails deployment via Capistrano, to setup a maintenance pages or a maintenance mode. The guides help you configure nginx such that the existence of the maintenance page causes the nginx proxy to return the maintenance page instead of forwarding on to the unicorn/puma/passenger server.