Created
June 8, 2018 18:25
-
-
Save excid3/2f7b70e73911effcca81c876e222a261 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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