config/docker/nginx/webapp.conf.erb
# etc/nginx/sites-enabled/webapp.conf:
server {
listen 80;
server_name <%= ENV['SERVER_NAME'] %>;
root /app/public;
# The following deploys your Ruby/Python/Node.js/Meteor app on Passenger.
# Not familiar with Passenger, and used (G)Unicorn/Thin/Puma/pure Node before?
# Yes, this is all you need to deploy on Passenger! All the reverse proxying,
# socket setup, process management, etc are all taken care automatically for
# you! Learn more at https://www.phusionpassenger.com/.
passenger_enabled on;
passenger_user app;
# If this is a Ruby app, specify a Ruby version:
passenger_ruby /usr/bin/ruby3.3;
# For Ruby 2.2
# passenger_ruby /usr/bin/ruby2.2;
# For Ruby 2.1
# passenger_ruby /usr/bin/ruby2.1;
# Ensures that RAILS_ENV, NODE_ENV, etc are set to "staging"
# when your application is started.
# !! CHECK
passenger_app_env production;
client_max_body_size 300M;
}