Skip to content

Instantly share code, notes, and snippets.

@excid3
Created June 8, 2018 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save excid3/2f7b70e73911effcca81c876e222a261 to your computer and use it in GitHub Desktop.
Save excid3/2f7b70e73911effcca81c876e222a261 to your computer and use it in GitHub Desktop.
server {
listen 80;
listen [::]:80;
server_name _;
passenger_enabled on;
rails_env production;
root /home/deploy/build.gorails.com/current/public;
location /cable {
passenger_app_group_name build_action_cable;
passenger_force_max_concurrent_requests_per_process 0;
}
# redirect server error pages to the static page /50x.html
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ ^/assets/ {
try_files $uri $uri/;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment