Created
August 18, 2020 13:28
-
-
Save beglov/f7963f0c67866e29487c681cf8a4bfcd to your computer and use it in GitHub Desktop.
Nginx config for rails app with Passenger
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 ec2-3-134-77-212.us-east-2.compute.amazonaws.com; | |
root /home/deploy/tms/current/public; | |
access_log /home/deploy/tms/current/log/nginx.access.log; | |
error_log /home/deploy/tms/current/log/nginx.error.log info; | |
client_max_body_size 20M; | |
passenger_enabled on; | |
location ^~ /assets/ { | |
gzip_static on; | |
expires max; | |
add_header Cache-Control public; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment