Skip to content

Instantly share code, notes, and snippets.

@system-ini
system-ini / Nginx.conf
Created January 17, 2023 10:32
Sinatra + Passenger + Nginx
# Nginx conf, for example in /etc/nginx/sites-available/myapp.com
server {
listen 80;
server_name myapp.com;
passenger_enabled on;
passenger_app_env production;
root /var/www/myapp.com/public;
passenger_ruby /usr/local/rvm/gems/ruby-2.7.1/wrappers/ruby;
location / {