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 1.2.3.4:443; | |
server_name railsapp.example.com; | |
ssl on; | |
ssl_certificate cert.pem; | |
ssl_certificate_key cert.key; | |
location / { | |
proxy_set_header X-Forwarded-Proto https; | |
# Sets the HTTP headers appropiately; | |
proxy_pass http://rails_application; |