Fix app.rb and nginx.conf