Created
September 21, 2017 07:43
-
-
Save rehrumesh/b629bbeb2a1c18480ce187c4c07fdde1 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
# /etc/nginx/sites-enabled/webapp.conf: | |
server { | |
listen 80; | |
server_name *.coverya.no; | |
root /home/app/webapp/public; | |
client_max_body_size 4g; | |
location ^~ /assets/ { | |
allow all; | |
gzip_http_version 1.0; | |
gzip_static on; | |
expires 365d; | |
add_header Last-Modified ""; | |
add_header Cache-Control public; | |
} | |
location /dev/ { | |
proxy_ssl_server_name on; | |
proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
proxy_set_header Host 'dej3am1029.execute-api.eu-west-1.amazonaws.com'; | |
proxy_pass https://dej3am1029.execute-api.eu-west-1.amazonaws.com/dev/; | |
} | |
# 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/ruby2.1; | |
# For Ruby 2.0 | |
# passenger_ruby /usr/bin/ruby2.0; | |
# For Ruby 1.9.3 (you can ignore the "1.9.1" suffix) | |
passenger_ruby /usr/bin/ruby1.9.1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment